Package org.apache.catalina

Examples of org.apache.catalina.Host.addLifecycleListener()


        recipe.allow(Option.IGNORE_MISSING_PROPERTIES);
        Host host = (Host) recipe.create(cl);

        for (ListenerType listenerType : getListener()) {
            LifecycleListener listener = listenerType.getLifecycleListener(cl);
            host.addLifecycleListener(listener);
        }

        //alias
        for (String alias : getAlias()) {
            host.addAlias(alias);
View Full Code Here


       
        Container[] conHosts = engine.findChildren();
        for (Container conHost : conHosts) {
            Host host = (Host) conHost;
            if (!LifecycleState.NEW.equals(host.getState())) {
                host.addLifecycleListener(this);
                // Registering the host will register the context and wrappers
                registerHost(host);
            }
        }
    }
View Full Code Here

       
        Container[] conHosts = engine.findChildren();
        for (Container conHost : conHosts) {
            Host host = (Host) conHost;
            if (!LifecycleState.NEW.equals(host.getState())) {
                host.addLifecycleListener(this);
                // Registering the host will register the context and wrappers
                registerHost(host);
            }
        }
    }
View Full Code Here

                    if (defaultAccessLog != null) {
                        AccessLogListener l = new AccessLogListener(this);
                        host.addPropertyChangeListener(l);
                        host.addContainerListener(l);
                        host.addLifecycleListener(l);
                    } else {
                        // Try the ROOT context of default host
                        Context context = (Context) host.findChild("");
                        if (context != null &&
                                context.getState().isAvailable()) {
View Full Code Here

       
        Container[] conHosts = engine.findChildren();
        for (Container conHost : conHosts) {
            Host host = (Host) conHost;
            if (!LifecycleState.NEW.equals(host.getState())) {
                host.addLifecycleListener(this);
                // Registering the host will register the context and wrappers
                registerHost(host);
            }
        }
    }
View Full Code Here

        Host host = tomcat.getHost();
        host.setDeployOnStartup(false);
        host.setAutoDeploy(false);
        host.setConfigClass(TomcatContextConfig.class.getName());
        TomcatHostConfig hostConfig = new TomcatHostConfig();
        host.addLifecycleListener(hostConfig);
        tomcat.start();

        File warTarget = new File(webappDir, "/wicket-examples.war");
        InputStream is = new URL("mvn:org.apache.wicket/wicket-examples/1.5.3/war").openStream();
        FileOutputStream os = new FileOutputStream(warTarget);
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.