public class ContextBeanFactoryReference extends Object implements org.springframework.beans.factory.access.BeanFactoryReference
As per BeanFactoryReference contract, release
may be called
more than once, with subsequent calls not doing anything. However, calling
getFactory
after a release
call will cause an exception.
ConfigurableApplicationContext.close()
Constructor and Description |
---|
ContextBeanFactoryReference(ApplicationContext applicationContext)
Create a new ContextBeanFactoryReference for the given context.
|
Modifier and Type | Method and Description |
---|---|
org.springframework.beans.factory.BeanFactory |
getFactory() |
void |
release() |
public ContextBeanFactoryReference(ApplicationContext applicationContext)
applicationContext
- the ApplicationContext to wrappublic org.springframework.beans.factory.BeanFactory getFactory()
getFactory
in interface org.springframework.beans.factory.access.BeanFactoryReference
public void release()
release
in interface org.springframework.beans.factory.access.BeanFactoryReference