public void stop() { pico.stop(); pico.dispose(); }
/** * This method MUST NOT be renamed stop() because the container is registered itself in picocontainer. Starting * a component twice is not authorized. */ public ComponentContainer stopComponents() { try { stopChildren(); if (pico.getLifecycleState().isStarted()) { pico.stop(); } pico.dispose(); } finally { if (parent != null) { parent.removeChild(this); } } return this; }
/** * Shut down the console. * */ public void shutdown() { m_shutdown = true; m_container.getComponent(ConsoleCommunication.class).shutdown(); try { m_timer.cancel(); } catch (Exception e) { noOp(); } if (m_container.getLifecycleState().isStarted()) { m_container.stop(); } }
@Override public void stop() { delegatePicoContainer.stop(); }
private void stop(MutablePicoContainer container) { container.stop(); }
public void stop() { delegate.stop(); }
/** * @see org.picocontainer.Startable#stop() */ public void stop() { log.info("Stopping component manager"); pico.stop(); } }
/** * {@inheritDoc} * * @see org.picocontainer.Startable#stop() */ public void stop() { if (log.isInfoEnabled()) { log.info("Stopping Container " + delegate); } delegate.stop(); }
/** * {@inheritDoc} * * @see org.picocontainer.Startable#stop() */ public void stop() { if (logger.isInfoEnabled()) { logger.info("Stopping Container " + delegate); } delegate.stop(); }
public void stop() { picoContainer.stop(); picoContainer.dispose(); }
public void stop() { pico.stop(); pico.dispose(); }
public void destroyContainer(){ pico.stop(); pico.dispose(); }
public <T> T provideForRequest(RequestInfo request, Execution<T> execution) { PicoBasedContainer container = null; try { container = getComponentRegistry().provideRequestContainer(request); container.getContainer().start(); containersByThread.set(container); return execution.insideRequest(container); } finally { if (container != null) { MutablePicoContainer picoContainer = container.getContainer(); picoContainer.stop(); picoContainer.dispose(); } containersByThread.set(null); } }
public ComponentContainer stopComponents(boolean swallowException) { try { pico.stop(); pico.dispose(); } catch (RuntimeException e) { if (!swallowException) { throw PicoUtils.propagate(e); } } finally { removeChild(); if (parent != null) { parent.removeChild(); } } return this; }
/** * This method MUST NOT be renamed stop() because the container is registered itself in picocontainer. Starting * a component twice is not authorized. */ public ComponentContainer stopComponents() { try { stopChildren(); if (pico.getLifecycleState().isStarted()) { pico.stop(); } pico.dispose(); } finally { if (parent != null) { parent.removeChild(this); } } return this; }
scopedContainers.getRequestContainer().stop(); scopedContainers.getRequestContainer().dispose();