public class AddPoolConfiguration extends Object implements BeanFactoryAware, ImportBeanDefinitionRegistrar
AddPoolConfiguration class is a Spring ImportBeanDefinitionRegistrar that registers
a PoolFactoryBean definition for the Pool
configuration meta-data defined in EnablePool annotations.Pool,
BeanFactory,
BeanFactoryAware,
BeanDefinitionBuilder,
BeanDefinitionRegistry,
ImportBeanDefinitionRegistrar,
AnnotationMetadata,
PoolFactoryBean,
AddPoolsConfiguration,
PoolConfigurer,
EnablePools,
EnablePool| Constructor and Description |
|---|
AddPoolConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected BeanDefinitionBuilder |
configureLocators(Map<String,Object> enablePoolAttributes,
BeanDefinitionBuilder poolFactoryBean) |
protected BeanDefinitionBuilder |
configurePoolConnections(Map<String,Object> enablePoolAttributes,
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. |
protected BeanDefinitionBuilder |
configureServers(Map<String,Object> enablePoolAttributes,
BeanDefinitionBuilder poolFactoryBean) |
protected String |
getAndValidatePoolName(Map<String,Object> enablePoolAttributes) |
protected ConnectionEndpoint |
newConnectionEndpoint(String host,
Integer port) |
protected ConnectionEndpointList |
parseConnectionEndpoints(Map<String,Object> enablePoolAttributes,
String arrayAttributeName,
String stringAttributeName,
int defaultPort) |
void |
registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
BeanDefinitionRegistry registry) |
protected void |
registerPoolFactoryBeanDefinition(Map<String,Object> enablePoolAttributes,
BeanDefinitionRegistry registry)
Registers a
PoolFactoryBean definition in the Spring application context configured with
the EnablePool annotation meta-data. |
void |
setBeanFactory(BeanFactory beanFactory) |
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
registerBeanDefinitions in interface ImportBeanDefinitionRegistrarprotected void registerPoolFactoryBeanDefinition(Map<String,Object> enablePoolAttributes, BeanDefinitionRegistry registry)
PoolFactoryBean definition in the Spring application context configured with
the EnablePool annotation meta-data.enablePoolAttributes - EnablePool annotation attributes.registry - Spring BeanDefinitionRegistry used to register the PoolFactoryBean definition.BeanDefinitionRegistry,
PoolFactoryBean,
EnablePool,
Mapprotected String getAndValidatePoolName(Map<String,Object> enablePoolAttributes)
protected BeanDefinitionBuilder configurePoolConnections(Map<String,Object> enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean)
Pool used to communicate with the servers
in the GemFire cluster.enablePoolAttributes - EnablePool annotation containing
Pool Locator/Server connection endpoint meta-data.ClientCacheApplication,
Mapprotected BeanDefinitionBuilder configureLocators(Map<String,Object> enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean)
protected BeanDefinitionBuilder configureServers(Map<String,Object> enablePoolAttributes, BeanDefinitionBuilder poolFactoryBean)
protected ConnectionEndpointList parseConnectionEndpoints(Map<String,Object> enablePoolAttributes, String arrayAttributeName, String stringAttributeName, int defaultPort)
protected ConnectionEndpoint newConnectionEndpoint(String host, Integer port)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansExceptionCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.