Class AddPoolConfiguration
java.lang.Object
org.springframework.data.gemfire.config.annotation.support.AbstractAnnotationConfigSupport
org.springframework.data.gemfire.config.annotation.AddPoolConfiguration
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,ImportBeanDefinitionRegistrar,EnvironmentAware
- Direct Known Subclasses:
AddPoolsConfiguration
public class AddPoolConfiguration
extends AbstractAnnotationConfigSupport
implements 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
- Author:
- John Blum
- See Also:
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BeanDefinitionBuilderconfigurePoolConnections(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean) Uses the list of GemFire Locator and Server connection endpoint definitions and meta-data to configure the GemFire clientPoolused to communicate with the servers in the GemFire cluster.protected BeanDefinitionBuilderconfigurePoolLocators(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean) protected BeanDefinitionBuilderconfigurePoolServers(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean) protected StringgetAndValidatePoolName(Map<String, Object> enablePoolAttributes) protected Class<? extends Annotation>Returns the cache applicationAnnotationtype pertaining to this configuration.protected ConnectionEndpointnewConnectionEndpoint(String host, Integer port) protected ConnectionEndpointListparseConnectionEndpoints(AnnotationAttributes enablePoolAttributes, String arrayAttributeName, String stringAttributeName, int defaultPort) voidregisterBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) protected voidregisterPoolFactoryBeanDefinition(AnnotationAttributes enablePoolAttributes, BeanDefinitionRegistry registry) Registers aPoolFactoryBeandefinition in the Spring application context configured with theEnablePoolannotation 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, statsPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
registerBeanDefinitions
-
Constructor Details
-
AddPoolConfiguration
public AddPoolConfiguration()
-
-
Method Details
-
getAnnotationType
Description copied from class:AbstractAnnotationConfigSupportReturns the cache applicationAnnotationtype pertaining to this configuration.- Specified by:
getAnnotationTypein classAbstractAnnotationConfigSupport- Returns:
- the cache application
Annotationtype used by this application.
-
registerBeanDefinitions
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) - Specified by:
registerBeanDefinitionsin interfaceImportBeanDefinitionRegistrar
-
registerPoolFactoryBeanDefinition
protected void registerPoolFactoryBeanDefinition(AnnotationAttributes enablePoolAttributes, BeanDefinitionRegistry registry) Registers aPoolFactoryBeandefinition in the Spring application context configured with theEnablePoolannotation meta-data.- Parameters:
enablePoolAttributes-EnablePoolannotation attributes.registry- SpringBeanDefinitionRegistryused to register thePoolFactoryBeandefinition.- See Also:
-
getAndValidatePoolName
-
configurePoolConnections
protected BeanDefinitionBuilder configurePoolConnections(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean) Uses the list of GemFire Locator and Server connection endpoint definitions and meta-data to configure the GemFire clientPoolused to communicate with the servers in the GemFire cluster.- Parameters:
enablePoolAttributes-EnablePoolannotation containingPoolLocator/Server connection endpoint meta-data.- See Also:
-
configurePoolLocators
protected BeanDefinitionBuilder configurePoolLocators(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean) -
configurePoolServers
protected BeanDefinitionBuilder configurePoolServers(String poolName, AnnotationAttributes enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean) -
parseConnectionEndpoints
protected ConnectionEndpointList parseConnectionEndpoints(AnnotationAttributes enablePoolAttributes, String arrayAttributeName, String stringAttributeName, int defaultPort) -
newConnectionEndpoint
-