@Override public void cleanup() { super.cleanup(); beanStore.clear(); }
void stopApplicationScope() { if (applicationContext.isActive()) { if (applicationContext instanceof AbstractSharedContext) { ((AbstractSharedContext) applicationContext).getBeanStore().clear(); } } }
public void cleanup() { final BeanStore beanStore = getBeanStore(); if (beanStore != null) { try { beanStore.clear(); } catch (Exception e) { ContextLogger.LOG.unableToClearBeanStore(beanStore); ContextLogger.LOG.catchingDebug(e); } } }
/** * Destroys the context */ 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(); }