/** * 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); } }
} catch (Throwable e) { WeldContainer.discard(weldContainer.getId()); throw e;
} catch (Throwable e) { WeldContainer.discard(weldContainer.getId()); throw e;
} catch (Throwable e) { WeldContainer.discard(weldContainer.getId()); throw e;
} catch (Throwable e) { WeldContainer.discard(weldContainer.getId()); throw e;
/** * 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); } }