Class AddPoolConfiguration

java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.AddPoolConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.EnvironmentAware
Direct Known Subclasses:
AddPoolsConfiguration

public class AddPoolConfiguration extends AbstractAnnotationConfigSupport implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar
The AddPoolConfiguration class is a Spring ImportBeanDefinitionRegistrar that registers a PoolFactoryBean definition for the Pool configuration meta-data defined in EnablePool annotations.
Since:
1.9.0
See Also:
  • Constructor Details

    • AddPoolConfiguration

      public AddPoolConfiguration()
  • Method Details

    • getAnnotationType

      protected Class<? extends Annotation> getAnnotationType()
      Description copied from class: AbstractAnnotationConfigSupport
      Returns the cache application Annotation type pertaining to this configuration.
      Specified by:
      getAnnotationType in class AbstractAnnotationConfigSupport
      Returns:
      the cache application Annotation type used by this application.
    • registerBeanDefinitions

      public void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Specified by:
      registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
    • registerPoolFactoryBeanDefinition

      protected void registerPoolFactoryBeanDefinition(org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
      Registers a PoolFactoryBean definition in the Spring application context configured with the EnablePool annotation meta-data.
      Parameters:
      enablePoolAttributes - EnablePool annotation attributes.
      registry - Spring BeanDefinitionRegistry used to register the PoolFactoryBean definition.
      See Also:
    • getAndValidatePoolName

      protected String getAndValidatePoolName(Map<String,Object> enablePoolAttributes)
    • configurePoolConnections

      protected org.springframework.beans.factory.support.BeanDefinitionBuilder configurePoolConnections(String poolName, org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, org.springframework.beans.factory.support.BeanDefinitionBuilder poolFactoryBean)
      Uses the list of GemFire Locator and Server connection endpoint definitions and meta-data to configure the GemFire client Pool used to communicate with the servers in the GemFire cluster.
      Parameters:
      enablePoolAttributes - EnablePool annotation containing Pool Locator/Server connection endpoint meta-data.
      See Also:
    • configurePoolLocators

      protected org.springframework.beans.factory.support.BeanDefinitionBuilder configurePoolLocators(String poolName, org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, org.springframework.beans.factory.support.BeanDefinitionBuilder poolFactoryBean)
    • configurePoolServers

      protected org.springframework.beans.factory.support.BeanDefinitionBuilder configurePoolServers(String poolName, org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, org.springframework.beans.factory.support.BeanDefinitionBuilder poolFactoryBean)
    • parseConnectionEndpoints

      protected ConnectionEndpointList parseConnectionEndpoints(org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, String arrayAttributeName, String stringAttributeName, int defaultPort)
    • newConnectionEndpoint

      protected ConnectionEndpoint newConnectionEndpoint(String host, Integer port)