Examples of findLifecycleListeners()


Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

            StoreDescription parentDesc) throws Exception {
        if (aContext instanceof StandardContext) {
            StandardContext context = (StandardContext) aContext;
            // Store nested <Listener> elements
            if (context instanceof Lifecycle) {
                LifecycleListener listeners[] = context
                        .findLifecycleListeners();
                storeElementArray(aWriter, indent, listeners);
            }
            // Store nested <Valve> elements
            if (context instanceof Pipeline) {
View Full Code Here

Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

        assertFalse(context.getReloadable());
        StandardContext defaultContext = (StandardContext) appender
                .defaultInstance(context);
        assertFalse(defaultContext.getCookies());
        assertTrue(defaultContext.getReloadable());
        assertEquals(2, defaultContext.findLifecycleListeners().length);
        assertTrue(defaultContext.findLifecycleListeners()[0] instanceof ContextConfig);
        assertTrue(defaultContext.findLifecycleListeners()[1] instanceof InfoLifecycleListener);
    }

    public void _testDefaultInstanceWithoutOverride() throws Exception {
View Full Code Here

Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

        StandardContext defaultContext = (StandardContext) appender
                .defaultInstance(context);
        assertFalse(defaultContext.getCookies());
        assertTrue(defaultContext.getReloadable());
        assertEquals(2, defaultContext.findLifecycleListeners().length);
        assertTrue(defaultContext.findLifecycleListeners()[0] instanceof ContextConfig);
        assertTrue(defaultContext.findLifecycleListeners()[1] instanceof InfoLifecycleListener);
    }

    public void _testDefaultInstanceWithoutOverride() throws Exception {
        context.setOverride(true);
View Full Code Here

Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

                .defaultInstance(context);
        assertFalse(defaultContext.getCookies());
        assertTrue(defaultContext.getReloadable());
        assertEquals(2, defaultContext.findLifecycleListeners().length);
        assertTrue(defaultContext.findLifecycleListeners()[0] instanceof ContextConfig);
        assertTrue(defaultContext.findLifecycleListeners()[1] instanceof InfoLifecycleListener);
    }

    public void _testDefaultInstanceWithoutOverride() throws Exception {
        context.setOverride(true);
        StandardContext defaultContext = (StandardContext) appender
View Full Code Here

Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

    public void _testDefaultInstanceWithoutOverride() throws Exception {
        context.setOverride(true);
        StandardContext defaultContext = (StandardContext) appender
                .defaultInstance(context);
        assertEquals(0, defaultContext.findLifecycleListeners().length);

    }
   
    public void testPath() throws Exception {
        StandardContext defaultContext = (StandardContext) appender
View Full Code Here

Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

            StoreDescription parentDesc) throws Exception {
        if (aContext instanceof StandardContext) {
            StandardContext context = (StandardContext) aContext;
            // Store nested <Listener> elements
            if (context instanceof Lifecycle) {
                LifecycleListener listeners[] = context
                        .findLifecycleListeners();
                storeElementArray(aWriter, indent, listeners);
            }
            // Store nested <Valve> elements
            if (context instanceof Pipeline) {
View Full Code Here

Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

    public void storeChildren(PrintWriter aWriter, int indent, Object aContext,
            StoreDescription parentDesc) throws Exception {
        if (aContext instanceof StandardContext) {
            StandardContext context = (StandardContext) aContext;
            // Store nested <Listener> elements
            LifecycleListener listeners[] = context.findLifecycleListeners();
            storeElementArray(aWriter, indent, listeners);

            // Store nested <Valve> elements
            Valve valves[] = context.getPipeline().getValves();
            storeElementArray(aWriter, indent, valves);
View Full Code Here

Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

    public void storeChildren(PrintWriter aWriter, int indent, Object aContext,
            StoreDescription parentDesc) throws Exception {
        if (aContext instanceof StandardContext) {
            StandardContext context = (StandardContext) aContext;
            // Store nested <Listener> elements
            LifecycleListener listeners[] = context.findLifecycleListeners();
            ArrayList<LifecycleListener> listenersArray = new ArrayList<>();
            for (LifecycleListener listener : listeners) {
                if (!(listener instanceof ThreadLocalLeakPreventionListener)) {
                    listenersArray.add(listener);
                }
View Full Code Here

Examples of org.apache.catalina.core.StandardContext.findLifecycleListeners()

            StoreDescription parentDesc) throws Exception {
        if (aContext instanceof StandardContext) {
            StandardContext context = (StandardContext) aContext;
            // Store nested <Listener> elements
            if (context instanceof Lifecycle) {
                LifecycleListener listeners[] = context
                        .findLifecycleListeners();
                storeElementArray(aWriter, indent, listeners);
            }
            // Store nested <Valve> elements
            if (context instanceof Pipeline) {
View Full Code Here

Examples of org.apache.catalina.core.StandardHost.findLifecycleListeners()

            if (service.getContainer() instanceof Engine) {
                Engine engine = (Engine) service.getContainer();
                for (Container engineChild : engine.findChildren()) {
                    if (engineChild instanceof StandardHost) {
                        StandardHost host = (StandardHost) engineChild;
                        for (LifecycleListener listener : host.findLifecycleListeners()) {
                            if (listener instanceof HostConfig) {
                                HostConfig hostConfig = (HostConfig) listener;
                                deployers.put(host.getName(), hostConfig);
                            }
                        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.