Class GemfireBeanFactoryLocator.BeanFactoryReference
java.lang.Object
org.springframework.data.gemfire.support.GemfireBeanFactoryLocator.BeanFactoryReference
- Enclosing class:
- GemfireBeanFactoryLocator
Reference holder storing a reference to a Spring
BeanFactory
.- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
BeanFactoryReference
(BeanFactory beanFactory) Constructs an instance ofGemfireBeanFactoryLocator.BeanFactoryReference
initialized with the givenBeanFactory
. -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns the reference to the SpringBeanFactory
.protected static GemfireBeanFactoryLocator.BeanFactoryReference
newBeanFactoryReference
(BeanFactory beanFactory) Factory method to construct an instance ofGemfireBeanFactoryLocator.BeanFactoryReference
initialized with the givenBeanFactory
.void
release()
Releases the stored reference to the SpringBeanFactory
.
-
Field Details
-
UNINITIALIZED_BEAN_FACTORY_REFERENCE_MESSAGE
- See Also:
-
-
Constructor Details
-
BeanFactoryReference
Constructs an instance ofGemfireBeanFactoryLocator.BeanFactoryReference
initialized with the givenBeanFactory
.- Parameters:
beanFactory
-BeanFactory
reference to store; may be null.- See Also:
-
-
Method Details
-
newBeanFactoryReference
protected static GemfireBeanFactoryLocator.BeanFactoryReference newBeanFactoryReference(BeanFactory beanFactory) Factory method to construct an instance ofGemfireBeanFactoryLocator.BeanFactoryReference
initialized with the givenBeanFactory
.- Parameters:
beanFactory
-BeanFactory
reference to store.- Returns:
- a new instance of
GemfireBeanFactoryLocator.BeanFactoryReference
initialized with the givenBeanFactory
. - See Also:
-
get
Returns the reference to the SpringBeanFactory
.- Returns:
- a reference to the Spring
BeanFactory
. - See Also:
-
release
public void release()Releases the stored reference to the SpringBeanFactory
.
-