public class AddCacheServerConfiguration extends Object implements BeanFactoryAware, ImportBeanDefinitionRegistrar
AddCacheServerConfiguration
class is a Spring ImportBeanDefinitionRegistrar
that registers
a CacheServerFactoryBean
definition for the CacheServer
configuration meta-data defined in EnableCacheServer
annotation.CacheServer
,
BeanFactory
,
BeanFactoryAware
,
BeanDefinition
,
BeanDefinitionHolder
,
BeanDefinitionBuilder
,
BeanDefinitionRegistry
,
ImportBeanDefinitionRegistrar
,
AnnotationMetadata
,
AddCacheServersConfiguration
,
CacheServerApplication
,
CacheServerConfiguration
,
CacheServerConfigurer
,
EnableCacheServers
,
EnableCacheServer
,
CacheServerFactoryBean
Constructor and Description |
---|
AddCacheServerConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected BeanDefinitionHolder |
newBeanDefinitionHolder(BeanDefinition beanDefinition,
String beanName) |
void |
registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
BeanDefinitionRegistry registry) |
protected void |
registerCacheServerFactoryBeanDefinition(AbstractBeanDefinition beanDefinition,
String beanName,
BeanDefinitionRegistry registry) |
protected void |
registerCacheServerFactoryBeanDefinition(Map<String,Object> enableCacheServerAttributes,
BeanDefinitionRegistry registry)
Registers a
CacheServerFactoryBean bean definition for the given EnableCacheServer annotation
configuration meta-data. |
void |
setBeanFactory(BeanFactory beanFactory) |
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
registerBeanDefinitions
in interface ImportBeanDefinitionRegistrar
protected void registerCacheServerFactoryBeanDefinition(Map<String,Object> enableCacheServerAttributes, BeanDefinitionRegistry registry)
CacheServerFactoryBean
bean definition for the given EnableCacheServer
annotation
configuration meta-data.enableCacheServerAttributes
- attributes for the EnableCacheServer
annotation.registry
- BeanDefinitionRegistry
used to register the CacheServerFactoryBean
bean definition.BeanDefinitionBuilder
,
BeanDefinitionRegistry
,
CacheServerFactoryBean
protected void registerCacheServerFactoryBeanDefinition(AbstractBeanDefinition beanDefinition, String beanName, BeanDefinitionRegistry registry)
protected BeanDefinitionHolder newBeanDefinitionHolder(BeanDefinition beanDefinition, String beanName)
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.