Package org.mule.module.launcher.artifact

Examples of org.mule.module.launcher.artifact.ShutdownListener


    {
        MuleLoggerContext context = (MuleLoggerContext) selector.getContext("", classLoader, true);

        ArgumentCaptor<ShutdownListener> captor = ArgumentCaptor.forClass(ShutdownListener.class);
        verify(classLoader).addShutdownListener(captor.capture());
        ShutdownListener listener = captor.getValue();
        assertThat(listener, notNullValue());

        assertThat(context, is(selector.getContext(EMPTY, classLoader, true)));
        listener.execute();

        assertThat(context, not(selector.getContext("", classLoader, true)));
    }
View Full Code Here


        if (classLoader instanceof ArtifactClassLoader)
        {
            final ArtifactClassLoader artifactClassLoader = (ArtifactClassLoader) classLoader;

            artifactClassLoader.addShutdownListener(new ShutdownListener()
            {
                @Override
                public void execute()
                {
                    destroyLoggersFor(classLoader);
View Full Code Here

TOP

Related Classes of org.mule.module.launcher.artifact.ShutdownListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.