|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanFactoryReference
Class used to track a reference to a BeanFactory obtained through a BeanFactoryLocator.
It is safe to call release()
multiple times, but
getFactory()
must not be called after calling release.
BeanFactoryLocator
,
ContextBeanFactoryReference
Method Summary | |
---|---|
BeanFactory |
getFactory()
Returns the BeanFactory instance held by this reference. |
void |
release()
Indicate that the BeanFactory instance referred to by this object is not needed any longer by the client code which obtained the ref object. |
Method Detail |
---|
BeanFactory getFactory()
IllegalStateException
- if invoked after release() has been calledvoid release() throws FatalBeanException
In an EJB usage scenario this would normally be called from ejbRemove and ejbPassivate.
This is safe to call multiple times.
FatalBeanException
- if the BeanFactory cannot be releasedBeanFactoryLocator
,
ContextBeanFactoryReference
,
ConfigurableApplicationContext.close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |