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; }
/** * Disposes of the container and all of its child containers. */ @Override public void dispose() { container.dispose(); }
/** * @see org.picocontainer.MutablePicoContainer */ @Override public void destroy() { pico.dispose(); }
public void dispose() { delegate.dispose(); }
private void dispose(MutablePicoContainer container) { container.dispose(); }
@Override public void dispose() { delegatePicoContainer.dispose(); componentCache.clear(); } }
/** * Shut down the console. * * <p>Once stopped, the instance cannot be restarted.</p> */ public void shutdown() { m_timer.cancel(); m_container.dispose(); }
/** * {@inheritDoc} * * @see org.picocontainer.Disposable#dispose() */ public void dispose() { if (logger.isDebugEnabled()) { logger.debug("Disposing container " + delegate); } delegate.dispose(); }
/** * {@inheritDoc} * * @see org.picocontainer.Disposable#dispose() */ public void dispose() { if (log.isDebugEnabled()) { log.debug("Disposing container " + delegate); } delegate.dispose(); }
public void dispose() { removeAllComponents(); wrappedContainer.dispose(); wrappedContainer = null; componentContainer = null; }
public void stop() { picoContainer.stop(); picoContainer.dispose(); }
public void destroyContainer(){ pico.stop(); pico.dispose(); }
public void stop() { pico.stop(); pico.dispose(); }
/** * @jmx.managed-operation description = "Destroy this Admin" impact = "ACTION" */ public final void destroy() { checkDestroyStatus(); container_.dispose(); List list = container_.getComponentInstancesOfType(IContainer.class); for (Iterator i = list.iterator(); i.hasNext();) { IContainer element = (IContainer) i.next(); element.destroy(); } }
/** * destroy this Channel, all created Admins and all Proxies. * * @jmx.managed-operation description = "Destroy this Channel" * impact = "ACTION" */ public final void destroy() { if (destroyed_.compareAndSet(false, true)) { container_.dispose(); final List list = container_.getComponentInstancesOfType(IContainer.class); for (Iterator i = list.iterator(); i.hasNext();) { IContainer element = (IContainer) i.next(); element.destroy(); } } else { throw new OBJECT_NOT_EXIST(); } }
@Override public void dispose() { try { unregisterName(); } catch (Exception e) { logger_.error("unable to unregister NameService registration", e); } deactivate(); channelManager_.dispose(); container_.dispose(); disposableManager_.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; }