@Override protected void doStop() { if (bootstrap != null) { bootstrap.shutdown(); } } }
@Override protected void doStop() { if (bootstrap != null) { bootstrap.shutdown(); } } }
public void shutdown() { bootstrap.shutdown(); }
public void shutdown() { delegate().shutdown(); }
public void shutdown() { delegate().shutdown(); }
public void shutdown() { delegate().shutdown(); }
public void shutdown() { delegate().shutdown(); }
public void shutdown() { delegate().shutdown(); }
public void shutdown() { delegate().shutdown(); }
public void shutdown() { delegate().shutdown(); }
@Override public void contextDestroyed(ServletContextEvent sce) { bootstrap.shutdown(); try { Reflections.classForName("org.apache.AnnotationProcessor"); sce.getServletContext().removeAttribute(WeldAnnotationProcessor.class.getName()); } catch (IllegalArgumentException e) {} super.contextDestroyed(sce); }
/** * Clean up the container, ending any active contexts * */ public TestContainer stopContainer() { RequestContext requestContext = instance().select(RequestContext.class, UnboundLiteral.INSTANCE).get(); if (requestContext.isActive()) { requestContext.invalidate(); requestContext.deactivate(); } // TODO deactivate the conversation context BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get(); if (sessionContext.isActive()) { sessionContext.invalidate(); sessionContext.deactivate(); sessionContext.dissociate(sessionStore); } bootstrap.shutdown(); return this; }
/** * Clean up the container, ending any active contexts * */ public TestContainer stopContainer() { RequestContext requestContext = instance().select(RequestContext.class, UnboundLiteral.INSTANCE).get(); if (requestContext.isActive()) { requestContext.invalidate(); requestContext.deactivate(); } // TODO deactivate the conversation context BoundSessionContext sessionContext = instance().select(BoundSessionContext.class).get(); if (sessionContext.isActive()) { sessionContext.invalidate(); sessionContext.deactivate(); sessionContext.dissociate(sessionStore); } bootstrap.shutdown(); return this; }
/** * Shutdown the container. * * @see Weld#initialize() */ public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerShutdown(id), DestroyedLiteral.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }
/** * Shutdown the container. * * @see Weld#initialize() */ public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); beanManager().fireEvent(new ContainerShutdown(id), Destroyed.Literal.APPLICATION); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }
/** * Shutdown the container. * * @see Weld#initialize() */ public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); beanManager().fireEvent(new ContainerShutdown(id), Destroyed.Literal.APPLICATION); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }
/** * Shutdown the container. * * @see Weld#initialize() */ public synchronized void shutdown() { checkIsRunning(); try { beanManager().fireEvent(new ContainerBeforeShutdown(id), BeforeDestroyed.Literal.APPLICATION); } finally { discard(id); // Destroy all the dependent beans correctly creationalContext.release(); beanManager().fireEvent(new ContainerShutdown(id), Destroyed.Literal.APPLICATION); bootstrap.shutdown(); WeldSELogger.LOG.weldContainerShutdown(id); } }