Class AutoRegionLookupBeanPostProcessor
java.lang.Object
org.springframework.data.gemfire.config.support.AutoRegionLookupBeanPostProcessor
- All Implemented Interfaces:
Aware
,BeanFactoryAware
,BeanPostProcessor
public class AutoRegionLookupBeanPostProcessor
extends Object
implements BeanPostProcessor, 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
- Author:
- John Blum
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurableListableBeanFactory
Returns a reference to the containing SpringBeanFactory
.postProcessAfterInitialization
(Object bean, String beanName) final void
setBeanFactory
(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
Sets a reference to the configured SpringBeanFactory
.- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Parameters:
beanFactory
- configured SpringBeanFactory
.- Throws:
IllegalArgumentException
- if the givenBeanFactory
is not an instance ofConfigurableListableBeanFactory
.BeansException
- See Also:
-
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:
-
postProcessAfterInitialization
- Specified by:
postProcessAfterInitialization
in interfaceBeanPostProcessor
- Throws:
BeansException
-