use of org.jboss.weld.environment.se.events.ContainerBeforeShutdown in project core by weld.
the class WeldContainer method shutdown.
/**
* 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);
}
}
Aggregations