@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);
 }
예제 #2
0
파일: Listener.java 프로젝트: nmansard/core
  @Override
  public void contextDestroyed(ServletContextEvent sce) {
    bootstrap.shutdown();

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

    super.contextDestroyed(sce);
  }
예제 #3
0
 @Override
 public void contextDestroyed(ServletContextEvent sce) {
   lifecycle.destroy(sce.getServletContext());
   super.contextDestroyed(sce);
 }