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:
org.apache.geode.cache.CacheCallback
,org.apache.geode.cache.CacheListener
,org.apache.geode.cache.Declarable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,RegionResolver
public class BeanFactoryRegionResolver
extends AbstractCachingRegionResolver
implements org.springframework.beans.factory.BeanFactoryAware
- Since:
- 2.3.0
- See Also:
-
Region
BeanFactory
BeanFactoryAware
RegionResolver
AbstractCachingRegionResolver
-
Constructor Summary
ConstructorDescriptionBeanFactoryRegionResolver
(org.springframework.beans.factory.BeanFactory beanFactory) Constructs a new instance ofBeanFactoryRegionResolver
initialized with the givenBeanFactory
. -
Method Summary
Modifier and TypeMethodDescriptionprotected <K,
V> org.apache.geode.cache.Region<K, V> protected org.springframework.beans.factory.BeanFactory
Returns the configured reference to theBeanFactory
used to resolve cacheRegions
.final void
setBeanFactory
(org.springframework.beans.factory.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
public BeanFactoryRegionResolver(org.springframework.beans.factory.BeanFactory beanFactory) Constructs a new instance ofBeanFactoryRegionResolver
initialized with the givenBeanFactory
.- Parameters:
beanFactory
-BeanFactory
used to resolve cacheRegions
.- Throws:
IllegalArgumentException
- ifBeanFactory
is null.- See Also:
-
BeanFactory
setBeanFactory(BeanFactory)
-
-
Method Details
-
setBeanFactory
public final void setBeanFactory(@NonNull org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException Sets a reference to theBeanFactory
used to resolve cacheRegions
.- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Parameters:
beanFactory
-BeanFactory
used to resolve cacheRegions
.- Throws:
IllegalArgumentException
- ifBeanFactory
is null.org.springframework.beans.BeansException
- if configuration of theBeanFactory
fails.- See Also:
-
BeanFactory
-
getBeanFactory
@NonNull protected org.springframework.beans.factory.BeanFactory getBeanFactory()Returns the configured reference to theBeanFactory
used to resolve cacheRegions
.- Returns:
- a reference to the configured
BeanFactory
. - See Also:
-
BeanFactory
-
doResolve
@Nullable protected <K,V> org.apache.geode.cache.Region<K,V> doResolve(@Nullable String regionName) Description copied from class:AbstractCachingRegionResolver
-