Class BeanFactoryRegionResolver
java.lang.Object
org.apache.geode.cache.util.CacheListenerAdapter
org.springframework.data.gemfire.support.AbstractCachingRegionResolver
org.springframework.data.gemfire.support.BeanFactoryRegionResolver
- All Implemented Interfaces:
CacheCallback
,CacheListener
,Declarable
,Aware
,BeanFactoryAware
,RegionResolver
public class BeanFactoryRegionResolver
extends AbstractCachingRegionResolver
implements BeanFactoryAware
- Since:
- 2.3.0
- Author:
- John Blum
- See Also:
-
Constructor Summary
ConstructorDescriptionBeanFactoryRegionResolver
(BeanFactory beanFactory) Constructs a new instance ofBeanFactoryRegionResolver
initialized with the givenBeanFactory
. -
Method Summary
Modifier and TypeMethodDescriptionprotected <K,
V> Region<K, V> protected BeanFactory
Returns the configured reference to theBeanFactory
used to resolve cacheRegions
.final void
setBeanFactory
(BeanFactory beanFactory) Sets a reference to theBeanFactory
used to resolve cacheRegions
.Methods inherited from class org.springframework.data.gemfire.support.AbstractCachingRegionResolver
afterRegionDestroy, resolve
Methods inherited from class org.apache.geode.cache.util.CacheListenerAdapter
afterCreate, afterDestroy, afterInvalidate, afterRegionClear, afterRegionCreate, afterRegionInvalidate, afterRegionLive, afterUpdate, close
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.geode.cache.Declarable
init, initialize
Methods inherited from interface org.springframework.data.gemfire.RegionResolver
require
-
Constructor Details
-
BeanFactoryRegionResolver
Constructs a new instance ofBeanFactoryRegionResolver
initialized with the givenBeanFactory
.- Parameters:
beanFactory
-BeanFactory
used to resolve cacheRegions
.- Throws:
IllegalArgumentException
- ifBeanFactory
is null.- See Also:
-
-
Method Details
-
setBeanFactory
Sets a reference to theBeanFactory
used to resolve cacheRegions
.- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Parameters:
beanFactory
-BeanFactory
used to resolve cacheRegions
.- Throws:
IllegalArgumentException
- ifBeanFactory
is null.BeansException
- if configuration of theBeanFactory
fails.- See Also:
-
getBeanFactory
Returns the configured reference to theBeanFactory
used to resolve cacheRegions
.- Returns:
- a reference to the configured
BeanFactory
. - See Also:
-
doResolve
Description copied from class:AbstractCachingRegionResolver
-