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 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 Spring BeanFactory.
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Parameters:
      beanFactory - configured Spring BeanFactory.
      Throws:
      IllegalArgumentException - if the given BeanFactory is not an instance of ConfigurableListableBeanFactory.
      org.springframework.beans.BeansException
      See Also:
      • BeanFactoryAware
      • BeanFactory
    • getBeanFactory

      protected org.springframework.beans.factory.config.ConfigurableListableBeanFactory getBeanFactory()
      Returns a reference to the containing Spring BeanFactory.
      Returns:
      a reference to the containing Spring BeanFactory.
      Throws:
      IllegalStateException - if the BeanFactory was not configured.
      See Also:
      • BeanFactory
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException