Spring Data for VMware GemFire
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:
-
BeanFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBeanFactoryReference(org.springframework.beans.factory.BeanFactory beanFactory) Constructs an instance ofGemfireBeanFactoryLocator.BeanFactoryReferenceinitialized with the givenBeanFactory. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.BeanFactoryget()Returns the reference to the SpringBeanFactory.protected static GemfireBeanFactoryLocator.BeanFactoryReferencenewBeanFactoryReference(org.springframework.beans.factory.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
protected BeanFactoryReference(org.springframework.beans.factory.BeanFactory beanFactory) Constructs an instance ofGemfireBeanFactoryLocator.BeanFactoryReferenceinitialized with the givenBeanFactory.- Parameters:
beanFactory-BeanFactoryreference to store; may be null.- See Also:
-
BeanFactory
-
-
Method Details
-
newBeanFactoryReference
protected static GemfireBeanFactoryLocator.BeanFactoryReference newBeanFactoryReference(org.springframework.beans.factory.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
public org.springframework.beans.factory.BeanFactory get()Returns the reference to the SpringBeanFactory.- Returns:
- a reference to the Spring
BeanFactory. - See Also:
-
BeanFactory
-
release
public void release()Releases the stored reference to the SpringBeanFactory.
-