@Override public void onApplicationEvent(ApplicationEvent event) { if (event instanceof ContextClosedEvent) { this.delegatedBeanApplicationContext = null; if (delegatedBean != null) { delegatedBean.destroy(); delegatedBean = null; } } }
public void onApplicationEvent(ApplicationEvent event) { if (event instanceof ContextClosedEvent) { this.delegatedBeanApplicationContext = null; if (delegatedBean != null) { delegatedBean.destroy(); delegatedBean = null; } } }
@Override public void destroy() throws HstComponentException { this.delegatedBeanApplicationContext = null; if (delegatedBean != null) { delegatedBean.destroy(); delegatedBean = null; } super.destroy(); }
@Override public void destroy() throws HstComponentException { this.delegatedBeanApplicationContext = null; if (delegatedBean != null) { delegatedBean.destroy(); delegatedBean = null; } super.destroy(); }
public void unregisterComponent(HstContainerConfig requestContainerConfig, String componentId) { HstComponentHolder holder = getServletConfigComponentsMap(requestContainerConfig, true).remove(componentId); if (holder != null) { try { holder.getComponent().destroy(); } catch (Exception e) { if (log.isDebugEnabled()) { log.warn("Exception occurred during destroying component: {}", e.toString(), e); } else if (log.isWarnEnabled()) { log.warn("Exception occurred during destroying component: {}", e.toString()); } } } }
public void unregisterComponent(HstContainerConfig requestContainerConfig, String componentId) { HstComponentHolder holder = getServletConfigComponentsMap(requestContainerConfig, true).remove(componentId); if (holder != null) { try { holder.getComponent().destroy(); } catch (Exception e) { if (log.isDebugEnabled()) { log.warn("Exception occurred during destroying component: {}", e.toString(), e); } else if (log.isWarnEnabled()) { log.warn("Exception occurred during destroying component: {}", e.toString()); } } } }