protected void destroy ( ) { ContextLogger . LOG . contextCleared ( this ) ; final BeanStore beanStore = getBeanStore ( ) ; if ( beanStore == null ) { throw ContextLogger . LOG . noBeanStoreAvailable ( this ) ; } for ( BeanIdentifier id : beanStore ) { destroyContextualInstance ( beanStore . get ( id ) ) ; } beanStore . clear ( ) ; }
Destroys the context