/** * Note that any container-based operation will result in {@link IllegalStateException} after shutdown. */ @Override public void shutdown() { container.shutdown(); }
/** * Note that any container-based operation will result in {@link IllegalStateException} after shutdown. */ @Override public void shutdown() { container.shutdown(); }
@Override public void close() { shutdown(); }
@Override public void close() { shutdown(); }
@Override public void close() { shutdown(); }
@Override public void close() { shutdown(); }
/** * Shuts down all the containers initialized by this builder. */ public void shutdown() { if (!initializedContainers.isEmpty()) { for (WeldContainer container : initializedContainers.values()) { container.shutdown(); } } }
/** * Shuts down all the containers initialized by this builder. */ public void shutdown() { if (!initializedContainers.isEmpty()) { for (WeldContainer container : initializedContainers.values()) { container.shutdown(); } } }
/** * Shuts down all the containers initialized by this builder. */ public void shutdown() { if (!initializedContainers.isEmpty()) { for (WeldContainer container : initializedContainers.values()) { container.shutdown(); } } }
/** * Shuts down all the containers initialized by this builder. */ public void shutdown() { if (!initializedContainers.isEmpty()) { for (WeldContainer container : initializedContainers.values()) { container.shutdown(); } } }
@Override public void shutdown() throws Exception { WeldContainer internalContainer = WeldContainer.instance(ServerBootstrap.WELD_INSTANCE_ID); if (internalContainer != null) { internalContainer.shutdown(); } } }
@Override public void shutdown() throws Exception { WeldContainer internalContainer = WeldContainer.instance(ServerBootstrap.WELD_INSTANCE_ID); if (internalContainer != null) { internalContainer.shutdown(); } } }
@Override public void shutdown() throws Exception { WeldContainer internalContainer = WeldContainer.instance(ServerBootstrap.WELD_INSTANCE_ID); if (internalContainer != null) { internalContainer.shutdown(); } } }
@Override public void run() { for (String id : getRunningContainerIds()) { WeldContainer container = instance(id); if (container != null) { container.shutdown(); // At this time the logger service may not be available - print some basic info to the standard output System.out.println(String.format("Weld SE container %s shut down by shutdown hook", id)); } } } }
@Override public void run() { for (String id : getRunningContainerIds()) { WeldContainer container = instance(id); if (container != null) { container.shutdown(); // At this time the logger service may not be available - print some basic info to the standard output System.out.println(String.format("Weld SE container %s shut down by shutdown hook", id)); } } } }
@Override public void run() { for (String id : getRunningContainerIds()) { WeldContainer container = instance(id); if (container != null) { container.shutdown(); // At this time the logger service may not be available - print some basic info to the standard output System.out.println(String.format("Weld SE container %s shut down by shutdown hook", id)); } } } }
@Override public void run() { for (String id : getRunningContainerIds()) { WeldContainer container = instance(id); if (container != null) { container.shutdown(); // At this time the logger service may not be available - print some basic info to the standard output System.out.println(String.format("Weld SE container %s shut down by shutdown hook", id)); } } } }
@After public void tearDown() { if (weldContainer != null) { weldContainer.shutdown(); } }
protected void shutdownWeldContainer() { try { if (extension != null) { extension.deactivateContexts(); } releaseInstances(); } finally { if (container != null && container.isRunning()) { container.shutdown(); } } } }
@Override public void evaluate() throws Throwable { WeldContainer container = weld.initialize(); context.setBeanManager(container.getBeanManager()); try { base.evaluate(); } finally { container.shutdown(); context.unsetBeanManager(); } } };