Spring Data for VMware GemFire
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:
-
GemFireCacheRegionBeanFactoryBeanFactoryAwareBeanPostProcessorConfigurableListableBeanFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.factory.config.ConfigurableListableBeanFactoryReturns a reference to the containing SpringBeanFactory.postProcessAfterInitialization(Object bean, String beanName) final voidsetBeanFactory(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, waitMethods 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:
setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware- Parameters:
beanFactory- configured SpringBeanFactory.- Throws:
IllegalArgumentException- if the givenBeanFactoryis not an instance ofConfigurableListableBeanFactory.org.springframework.beans.BeansException- See Also:
-
BeanFactoryAwareBeanFactory
-
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 theBeanFactorywas not configured.- See Also:
-
BeanFactory
-
postProcessAfterInitialization
public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessAfterInitializationin interfaceorg.springframework.beans.factory.config.BeanPostProcessor- Throws:
org.springframework.beans.BeansException
-