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:
-
Pool
BeanFactory
BeanDefinitionBuilder
BeanDefinitionRegistry
ImportBeanDefinitionRegistrar
AnnotationMetadata
PoolFactoryBean
AddPoolsConfiguration
PoolConfigurer
EnablePools
EnablePool
AbstractAnnotationConfigSupport
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
AbstractAnnotationConfigSupport.TypeResolver<T>
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
CURRENT_THREAD_CONTEXT_CLASS_LOADER, INFRASTRUCTURE_ROLES, ORG_SPRINGFRAMEWORK_DATA_GEMFIRE_PACKAGE, ORG_SPRINGFRAMEWORK_PACKAGE, SPRING_DATA_GEMFIRE_PROPERTY_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 clientPool
used to communicate with the servers in the GemFire cluster.protected org.springframework.beans.factory.support.BeanDefinitionBuilder
configurePoolLocators
(String poolName, org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, org.springframework.beans.factory.support.BeanDefinitionBuilder poolFactoryBean) protected org.springframework.beans.factory.support.BeanDefinitionBuilder
configurePoolServers
(String poolName, org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, org.springframework.beans.factory.support.BeanDefinitionBuilder poolFactoryBean) protected String
getAndValidatePoolName
(Map<String, Object> enablePoolAttributes) protected Class<? extends Annotation>
Returns the cache applicationAnnotation
type pertaining to this configuration.protected ConnectionEndpoint
newConnectionEndpoint
(String host, Integer port) protected ConnectionEndpointList
parseConnectionEndpoints
(org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, String arrayAttributeName, String stringAttributeName, int defaultPort) void
registerBeanDefinitions
(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) protected void
registerPoolFactoryBeanDefinition
(org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Registers aPoolFactoryBean
definition in the Spring application context configured with theEnablePool
annotation meta-data.Methods inherited from class org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
arrayOfPropertyNamesFor, arrayOfPropertyNamesFor, asArrayProperty, cacheClientProperty, cacheCompressionProperty, cacheOffHeapProperty, cachePeerProperty, cacheProperty, cacheServerProperty, clusterProperty, diskStoreProperty, entitiesProperty, gatewayReceiverProperty, gatewaySenderProperty, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationTypeName, getAnnotationTypeSimpleName, getBeanClassLoader, getBeanFactory, getEnvironment, getEvaluationContext, getLogger, hasValue, hasValue, hasValue, httpServiceProperty, isAnnotationPresent, isAnnotationPresent, isNotInfrastructureBean, isNotInfrastructureBean, isNotInfrastructureClass, isNotInfrastructureRole, isUserLevelMethod, locatorProperty, logDebug, logDebug, logError, logError, loggingProperty, logInfo, logInfo, logWarning, logWarning, managementProperty, managerProperty, memcachedServiceProperty, namedCacheServerProperty, namedDiskStoreProperty, namedGatewaySenderProperty, namedPoolProperty, newEvaluationContext, newLogger, pdxProperty, poolProperty, propertyName, register, register, requireProperty, resolveAnnotation, resolveBeanClass, resolveBeanClass, resolveBeanClass, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassLoader, resolveBeanClassName, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, resolveProperty, safeResolveType, securityProperty, serviceProperty, setBeanClassLoader, setBeanFactory, setEnvironment, sslProperty, statsProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
registerBeanDefinitions
-
Constructor Details
-
AddPoolConfiguration
public AddPoolConfiguration()
-
-
Method Details
-
getAnnotationType
Description copied from class:AbstractAnnotationConfigSupport
Returns the cache applicationAnnotation
type pertaining to this configuration.- Specified by:
getAnnotationType
in classAbstractAnnotationConfigSupport
- 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 interfaceorg.springframework.context.annotation.ImportBeanDefinitionRegistrar
-
registerPoolFactoryBeanDefinition
protected void registerPoolFactoryBeanDefinition(org.springframework.core.annotation.AnnotationAttributes enablePoolAttributes, org.springframework.beans.factory.support.BeanDefinitionRegistry registry) Registers aPoolFactoryBean
definition in the Spring application context configured with theEnablePool
annotation meta-data.- Parameters:
enablePoolAttributes
-EnablePool
annotation attributes.registry
- SpringBeanDefinitionRegistry
used to register thePoolFactoryBean
definition.- See Also:
-
BeanDefinitionRegistry
PoolFactoryBean
EnablePool
Map
-
getAndValidatePoolName
-
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 clientPool
used to communicate with the servers in the GemFire cluster.- Parameters:
enablePoolAttributes
-EnablePool
annotation containingPool
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
-