public class AutoRegionLookupConfiguration extends Object implements BeanFactoryAware, EnvironmentAware, ImportBeanDefinitionRegistrar
AutoRegionLookupConfiguration
class is a Spring ImportBeanDefinitionRegistrar
that enables
the automatic lookup of GemFire Regions, which may have been defined else where, such as in cache.xml
or using GemFire's Cluster Configuration Service.
This registrar works by registering the AutoRegionLookupBeanPostProcessor
in the Spring application context,
which is enabled when a Spring @Configuration
annotated
GemFire cache application class is annotated with EnableAutoRegionLookup
.BeanFactory
,
BeanFactoryAware
,
EnvironmentAware
,
ImportBeanDefinitionRegistrar
,
Environment
,
EnableAutoRegionLookup
,
AutoRegionLookupBeanPostProcessor
Constructor and Description |
---|
AutoRegionLookupConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected Environment |
getEnvironment()
Returns a reference to the configured
Environment in the Spring application context. |
void |
registerBeanDefinitions(AnnotationMetadata importingClassMetadata,
BeanDefinitionRegistry registry) |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setEnvironment(Environment environment) |
public void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory
in interface BeanFactoryAware
BeansException
public void setEnvironment(Environment environment)
setEnvironment
in interface EnvironmentAware
protected Environment getEnvironment()
Environment
in the Spring application context.Environment
.IllegalStateException
- if the Environment
reference was not properly configured.Environment
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
registerBeanDefinitions
in interface ImportBeanDefinitionRegistrar
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.