public abstract class DeclarableSupport extends Object implements org.apache.geode.cache.CacheCallback, org.apache.geode.cache.Declarable
Declarable components. Provides subclasses with a reference
to the current Spring BeanFactory in orde to perform Spring bean lookups or resource loading.
Note, in most cases, the developer should just declare the same components as Spring beans in the Spring container,
through PeerRegionFactoryBean, which gives access to the full Spring container capabilities and does not
enforce the Declarable interface to be implemented.BeanFactory,
GemfireBeanFactoryLocator,
CacheCallback,
Declarable| Constructor and Description |
|---|
DeclarableSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected BeanFactory |
getBeanFactory()
Returns a reference to the Spring
BeanFactory. |
protected String |
getBeanFactoryKey()
Returns the key used to lookup the Spring
BeanFactory. |
protected BeanFactory |
locateBeanFactory()
Returns a reference to the Spring
BeanFactory. |
protected BeanFactory |
locateBeanFactory(String beanFactoryKey)
Returns a reference to the Spring
BeanFactory for the given beanFactoryKey. |
void |
setBeanFactoryKey(String beanFactoryKey)
Set the key used to lookup the Spring
BeanFactory. |
protected BeanFactory getBeanFactory()
BeanFactory.BeanFactory.GemfireBeanFactoryLocator.useBeanFactory(String),
BeanFactory,
locateBeanFactory()public void setBeanFactoryKey(String beanFactoryKey)
BeanFactory.beanFactoryKey - String containing the key used to lookup the Spring BeanFactory.protected String getBeanFactoryKey()
BeanFactory.String containing the key used to lookup the Spring BeanFactory.protected BeanFactory locateBeanFactory()
BeanFactory.BeanFactory.BeanFactory,
locateBeanFactory(String),
getBeanFactoryKey()protected BeanFactory locateBeanFactory(String beanFactoryKey)
BeanFactory for the given beanFactoryKey.beanFactoryKey - String containing the key used to lookup the Spring BeanFactory.BeanFactory for the given beanFactoryKey.GemfireBeanFactoryLocator.useBeanFactory(String),
BeanFactorypublic void close()
close in interface org.apache.geode.cache.CacheCallbackCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.