Class ContextBeanFactoryReference

  • All Implemented Interfaces:
    BeanFactoryReference

    public class ContextBeanFactoryReference
    extends Object
    implements BeanFactoryReference
    ApplicationContext-specific implementation of BeanFactoryReference, wrapping a newly created ApplicationContext, closing it on release.

    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.

    Since:
    13.02.2004
    Author:
    Juergen Hoeller, Colin Sampaleanu
    See Also:
    ConfigurableApplicationContext.close()