protected void doShutdown() { if (muleContext != null) { muleContext.dispose(); muleContext = null; } }
public void dispose() throws MuleException { muleContext.dispose(); }
protected void dispose(SpringXmlConfigurationBuilder builder, MuleContext context) { try { if (context != null) { context.dispose(); } } finally { deleteLoggingThreads(); } }
@Override public void dispose() { if (logger.isInfoEnabled()) { logger.info(miniSplash(String.format("Disposing domain '%s'", getArtifactName()))); } if (this.muleContext != null) { this.muleContext.dispose(); } this.deploymentClassLoader.dispose(); }
public void destroy() { if (muleContext != null) { if (!muleContext.isDisposing() || !muleContext.isDisposed()) { muleContext.dispose(); } } } }
protected void doStop() { log.info("Stopping Mule"); try { muleContext.stop(); } catch (MuleException e) { // sigh, ridiculous juli bugs - logger would have already been disposed // by a shutdown handler by now System.err.println("Failed to stop Mule: " + e); } muleContext.dispose(); } }
protected void doDispose() { if (muleContext == null) { if (logger.isInfoEnabled()) { logger.info(String.format("App '%s' never started, nothing to dispose of", descriptor.getName())); } return; } try { stop(); } catch (DeploymentStopException e) { // catch the stop errors and just log, we're disposing of an app anyway logger.error("Error stopping application", e); } if (logger.isInfoEnabled()) { logger.info(miniSplash(String.format("Disposing app '%s'", descriptor.getName()))); } muleContext.dispose(); muleContext = null; }
/** * Will dispose the MuleManager instance <b>if</b> a new instance was created for this * client. Otherwise this method only cleans up resources no longer needed */ @Override public void dispose() { synchronized (dispatchers) { for (RemoteDispatcher remoteDispatcher : dispatchers) { remoteDispatcher.dispose(); } dispatchers.clear(); } // Dispose the muleContext only if the muleContext was created for this // client if (muleContext.getConfiguration().isClientMode()) { logger.info("Stopping Mule..."); muleContext.dispose(); } }
muleContext.dispose();
public void killMule(MuleContext muleContext) { try { if (muleContext != null && !muleContext.isStopped()) { muleContext.stop(); stopPlugins(); } } catch (Throwable e1) { } if (muleContext != null && !muleContext.isDisposed()) { muleContext.dispose(); disposePlugins(); } clearLogginConfiguration(); }
muleContext.dispose();