@Override public void contextDestroyed(ServletContextEvent sce) { cdiContainer.stop(); ServletContext context = sce.getServletContext(); context.removeAttribute("org.ops4j.pax.cdi.ClassIntrospecter"); context.removeAttribute("org.ops4j.pax.cdi.BeanManager"); super.contextDestroyed(sce); }
@Override public void contextDestroyed(ServletContextEvent sce) { bootstrap.shutdown(); if (container != null) container.destroy(new ContainerContext(sce, null)); super.contextDestroyed(sce); }
@Override public void contextDestroyed(ServletContextEvent sce) { lifecycle.destroy(sce.getServletContext()); super.contextDestroyed(sce); }