@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);
 }
Ejemplo n.º 2
0
  @Override
  public void contextDestroyed(ServletContextEvent sce) {
    bootstrap.shutdown();

    if (container != null) container.destroy(new ContainerContext(sce, null));

    super.contextDestroyed(sce);
  }
Ejemplo n.º 3
0
 @Override
 public void contextDestroyed(ServletContextEvent sce) {
   lifecycle.destroy(sce.getServletContext());
   super.contextDestroyed(sce);
 }