org.springframework.data.gemfire
Class GemfireBeanFactoryLocator
java.lang.Object
org.springframework.data.gemfire.GemfireBeanFactoryLocator
- All Implemented Interfaces:
- BeanFactoryLocator, Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean
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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GemfireBeanFactoryLocator
public GemfireBeanFactoryLocator()
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface InitializingBean
destroy
public void destroy()
- Specified by:
destroy
in interface DisposableBean
useBeanFactory
public BeanFactoryReference useBeanFactory(String factoryKey)
throws BeansException
- Specified by:
useBeanFactory
in interface BeanFactoryLocator
- Throws:
BeansException
setBeanName
public void setBeanName(String name)
- Specified by:
setBeanName
in interface BeanNameAware
setBeanFactory
public void setBeanFactory(BeanFactory beanFactory)
throws BeansException
- Specified by:
setBeanFactory
in interface BeanFactoryAware
- Throws:
BeansException