@Override public void contextDestroyed(ServletContextEvent event) { if (delegateListener != null) { delegateListener.contextDestroyed(event); } }
logger.warn("Exception {}", e); } finally { super.contextDestroyed(sce); if (ctx != null) { ctx.removeAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
@Override public void contextDestroyed(ServletContextEvent theSce) { cll.contextDestroyed(theSce); } });
@Override public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); }
@Override public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); } }
@Override public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); } }
@Override public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); } }
@Override public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); } }
public void contextDestroyed(ServletContextEvent sce) { this.contextLoaderListener.contextDestroyed(sce); }
public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); log.debug("SpringContextListener contextDestroyed"); } }
/** * Performs standard Spring {@code ContextLoaderListener} teardown and ensures any attributes added to the servlet * context for this dispatcher are removed. * * @param event the context event */ @Override public void contextDestroyed(ServletContextEvent event) { try { super.contextDestroyed(event); } finally { event.getServletContext().removeAttribute(ATTR_BYPASSED); } }
@Override public void contextDestroyed(final ServletContextEvent event) { if (initThread != null && initThread.isAlive()) { initThread.interrupt(); try { initThread.join(); } catch (InterruptedException e) { log.error("Interrupted while stopping initThread", e); initThread.interrupt(); } } super.contextDestroyed(event); } }
@Override public void contextDestroyed(ServletContextEvent event) { try { system.shutdown(); } finally { super.contextDestroyed(event); } }
@Override public void contextDestroyed(ServletContextEvent event) { InstanceFactory.setInstanceProvider(null); super.contextDestroyed(event); } }
@Override public void contextDestroyed(ServletContextEvent event) { try { super.contextDestroyed(event); } finally { dbConnectionFactory.closePool(); } }
@Override public void destroy() { if(listener != null) listener.contextDestroyed(new ServletContextEvent(servletContext)); springMap = null; servletContext = null; listener = null; context = null; }
public void contextDestroyed(ServletContextEvent event) { if(springContext != null){ try{ springContext.contextDestroyed(event) ; }catch(Exception e){ log.error(e, e) ; } springContext = null ; } if(context != null){ context.shutdown(event.getServletContext()) ; context = null ; } }
@Override public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); EurekaRegistry.getInstance().shutdown(); }
@Override public void contextDestroyed(ServletContextEvent destoryContext) { super.contextDestroyed(destoryContext); /** * 增加清除所有注册的JDBC驱动 */ Enumeration<Driver> drivers = DriverManager.getDrivers(); while (drivers.hasMoreElements()) { Driver driver = drivers.nextElement(); try { DriverManager.deregisterDriver(driver); } catch (SQLException e) { e.printStackTrace(); } } removeThreadLocals(); }
/** * invokes contextDestroyed for every registered plugin * * @param evt */ public void invokePluginContextDestroyed(ServletContextEvent evt) { for (ApplicationContextPlugin plugin : getApplicationContextPlugins()) { for (ContextLoaderListener listener : plugin.getContextLoaderListeners()) { try { listener.contextDestroyed(evt); } catch (Exception e) { log.error("error in contextDestroyed for plugin '" + plugin.getName() + "'", e); } } } }