Class AutoRegionLookupBeanPostProcessor
java.lang.Object
org.springframework.data.gemfire.config.support.AutoRegionLookupBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanFactoryAware
,org.springframework.beans.factory.config.BeanPostProcessor
public class AutoRegionLookupBeanPostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor, org.springframework.beans.factory.BeanFactoryAware
The
AutoRegionLookupBeanPostProcessor
class is a Spring BeanPostProcessor
that post processes
a GemFireCache
by registering all cache Regions
that have not been explicitly defined
in the Spring application context.
This is usually the case for Regions
that have been defined in GemFire's native cache.xml
or defined using GemFire Cluster-based Configuration Service.- Since:
- 1.5.0
- See Also:
-
GemFireCache
Region
BeanFactory
BeanFactoryAware
BeanPostProcessor
ConfigurableListableBeanFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.factory.config.ConfigurableListableBeanFactory
Returns a reference to the containing SpringBeanFactory
.postProcessAfterInitialization
(Object bean, String beanName) final void
setBeanFactory
(org.springframework.beans.factory.BeanFactory beanFactory) Sets a reference to the configured SpringBeanFactory
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
Constructor Details
-
AutoRegionLookupBeanPostProcessor
public AutoRegionLookupBeanPostProcessor()
-
-
Method Details
-
setBeanFactory
public final void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException Sets a reference to the configured SpringBeanFactory
.- Specified by:
setBeanFactory
in interfaceorg.springframework.beans.factory.BeanFactoryAware
- Parameters:
beanFactory
- configured SpringBeanFactory
.- Throws:
IllegalArgumentException
- if the givenBeanFactory
is not an instance ofConfigurableListableBeanFactory
.org.springframework.beans.BeansException
- See Also:
-
BeanFactoryAware
BeanFactory
-
getBeanFactory
protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()Returns a reference to the containing SpringBeanFactory
.- Returns:
- a reference to the containing Spring
BeanFactory
. - Throws:
IllegalStateException
- if theBeanFactory
was not configured.- See Also:
-
BeanFactory
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-