Class GemfireDataSourcePostProcessor

java.lang.Object
org.springframework.data.gemfire.client.GemfireDataSourcePostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor

public class GemfireDataSourcePostProcessor extends Object implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.config.BeanPostProcessor
A Spring BeanFactoryPostProcessor used to register a Client Region beans for each Region accessible to an Apache Geode or Pivotal GemFire DataSource. If the Region is already defined, the bean definition will not be overridden.
Since:
1.2.0
See Also:
  • Constructor Details

    • GemfireDataSourcePostProcessor

      public GemfireDataSourcePostProcessor()
  • Method Details

    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Set a reference to the BeanFactory.
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Parameters:
      beanFactory - reference to the BeanFactory.
      Throws:
      org.springframework.beans.BeansException - if the BeanFactory is not a ConfigurableBeanFactory.
      See Also:
      • ConfigurableBeanFactory
      • BeanFactory
    • getBeanFactory

      public Optional<org.springframework.beans.factory.config.ConfigurableBeanFactory> getBeanFactory()
      Returns a reference to the configured ConfigurableBeanFactory.
      Returns:
      a reference to the configured ConfigurableBeanFactory.
      See Also:
      • ConfigurableBeanFactory
    • setClientRegionShortcut

      public void setClientRegionShortcut(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
      Set the data policy used to configure the client Region.
      Parameters:
      clientRegionShortcut - ClientRegionShortcut used to define the data policy used by the client Region.
      See Also:
      • ClientRegionShortcut
    • getClientRegionShortcut

      public Optional<org.apache.geode.cache.client.ClientRegionShortcut> getClientRegionShortcut()
      Returns the data policy used to configure the client Region.
      Returns:
      the configured ClientRegionShortcut used to define the data policy used by the client Region.
      See Also:
    • resolveClientRegionShortcut

      protected org.apache.geode.cache.client.ClientRegionShortcut resolveClientRegionShortcut()
      Resolves the ClientRegionShortcut used to configure and create client Regions.
      Returns:
      the resolved ClientRegionShortcut.
      See Also:
    • getLogger

      protected org.slf4j.Logger getLogger()
      Returns a reference to the configured Logger used to log messages.
      Returns:
      a reference to the configured Logger.
      See Also:
      • Logger
    • postProcessAfterInitialization

      @Nullable 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
    • using

      public GemfireDataSourcePostProcessor using(org.apache.geode.cache.client.ClientRegionShortcut clientRegionShortcut)
    • using

      public GemfireDataSourcePostProcessor using(org.springframework.beans.factory.BeanFactory beanFactory)