public class GemfireBeanFactoryLocator extends Object implements org.springframework.beans.factory.access.BeanFactoryLocator, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.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(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setBeanName(String name) |
org.springframework.beans.factory.access.BeanFactoryReference |
useBeanFactory(String factoryKey) |
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
public org.springframework.beans.factory.access.BeanFactoryReference useBeanFactory(String factoryKey) throws org.springframework.beans.BeansException
useBeanFactory
in interface org.springframework.beans.factory.access.BeanFactoryLocator
org.springframework.beans.BeansException
public void setBeanName(String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.