Class BeanFactoryPoolResolver

java.lang.Object
org.springframework.data.gemfire.client.support.BeanFactoryPoolResolver
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, PoolResolver

public class BeanFactoryPoolResolver extends Object implements org.springframework.beans.factory.BeanFactoryAware, PoolResolver
PoolResolver implementation that uses the Spring BeanFactory to resolve managed Pool objects. This means the Pool was configured and initialized by the Spring container given the Pool would be a proper bean declaration in this case.
Since:
2.3.0
See Also:
  • Constructor Details

    • BeanFactoryPoolResolver

      public BeanFactoryPoolResolver(@NonNull org.springframework.beans.factory.BeanFactory beanFactory)
      Constructs a new instance of the BeanFactoryPoolResolver initialized with the given Spring BeanFactory used to resolve managed Pool objects.
      Parameters:
      beanFactory - Spring BeanFactory used to resolve managed Pool objects.
      See Also:
      • BeanFactory
  • Method Details

    • setBeanFactory

      public final void setBeanFactory(@NonNull org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • getBeanFactory

      protected org.springframework.beans.factory.BeanFactory getBeanFactory()
      Returns a reference to the configured Spring BeanFactory used to resolve managed Pool objects.
      Returns:
      a reference to the configured Spring BeanFactory.
      See Also:
      • BeanFactory
    • resolve

      @Nullable public org.apache.geode.cache.client.Pool resolve(@Nullable String poolName)
      Resolves the managed, named Apache Geode Pool from the Spring BeanFactory.
      Specified by:
      resolve in interface PoolResolver
      Parameters:
      poolName - name of the Pool to resolve.
      Returns:
      the resolved, named, managed Pool object or null if no Pool with the given name could be resolved from the configured Spring BeanFactory.
      See Also: