public class GemfireBeanFactoryLocator extends Object implements BeanFactoryLocator, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean
BeanFactoryLocator used for storing Spring application context/bean factory for Gemfire
user components (or Declarable. As opposed to the "traditional"
SingletonBeanFactoryLocator this implementation does
not require any configuration file; it rather assume declaration inside an application context
(usually through CacheFactory which it will store under the name
and aliases of the bean (so the same "registry" can be used for storing multiple BeanFactories).
If there is only one BeanFactory registered then a null value can be used with setBeanName(String).
In most cases, one does not need to use this class directly as it is used internally
by CacheFactory.| Constructor and Description |
|---|
GemfireBeanFactoryLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setBeanName(String name) |
BeanFactoryReference |
useBeanFactory(String factoryKey) |
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic void destroy()
destroy in interface DisposableBeanpublic BeanFactoryReference useBeanFactory(String factoryKey) throws BeansException
useBeanFactory in interface BeanFactoryLocatorBeansExceptionpublic void setBeanName(String name)
setBeanName in interface BeanNameAwarepublic void setBeanFactory(BeanFactory beanFactory) throws BeansException
setBeanFactory in interface BeanFactoryAwareBeansException