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
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBeanFactoryReference(BeanFactory beanFactory) Constructs an instance ofGemfireBeanFactoryLocator.BeanFactoryReferenceinitialized with the givenBeanFactory. -
Method Summary
Modifier and TypeMethodDescriptionget()Returns the reference to the SpringBeanFactory.protected static GemfireBeanFactoryLocator.BeanFactoryReferencenewBeanFactoryReference(BeanFactory beanFactory) Factory method to construct an instance ofGemfireBeanFactoryLocator.BeanFactoryReferenceinitialized with the givenBeanFactory.voidrelease()Releases the stored reference to the SpringBeanFactory.
-
Field Details
-
UNINITIALIZED_BEAN_FACTORY_REFERENCE_MESSAGE
- See Also:
-
-
Constructor Details
-
BeanFactoryReference
Constructs an instance ofGemfireBeanFactoryLocator.BeanFactoryReferenceinitialized with the givenBeanFactory.- Parameters:
beanFactory-BeanFactoryreference to store; may be null.- See Also:
-
-
Method Details
-
newBeanFactoryReference
protected static GemfireBeanFactoryLocator.BeanFactoryReference newBeanFactoryReference(BeanFactory beanFactory) Factory method to construct an instance ofGemfireBeanFactoryLocator.BeanFactoryReferenceinitialized with the givenBeanFactory.- Parameters:
beanFactory-BeanFactoryreference to store.- Returns:
- a new instance of
GemfireBeanFactoryLocator.BeanFactoryReferenceinitialized 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.
-