Examples of ServerLifeCycleListener


Examples of org.apache.cxf.endpoint.ServerLifeCycleListener

        try {
            Thread.currentThread().setContextClassLoader(ServerFactoryBean.class.getClassLoader());
            Server server = factory.create();
            server.getEndpoint().put("WS", CONTEXT_ROOT);
            Thread.currentThread().setContextClassLoader(ServerFactoryBean.class.getClassLoader());
            ServerLifeCycleListener stopHook = new ServerLifeCycleListener() {
                @Override
                public void stopServer(Server s) {
                    Object contextProperty = s.getEndpoint().get("WS");
                    if (contextProperty != null && contextProperty.equals(CONTEXT_ROOT)) {
                        httpService.unregister(CONTEXT_ROOT);
View Full Code Here

Examples of org.apache.cxf.endpoint.ServerLifeCycleListener

            //and error out at that point.  If nothing uses ws-securitypolicy
            //no warnings/errors will display
        }
        ServerLifeCycleManager m = b.getExtension(ServerLifeCycleManager.class);
        if (m != null) {
            m.registerListener(new ServerLifeCycleListener() {
                public void startServer(Server server) {
                }
                public void stopServer(Server server) {
                    shutdownResources(server.getEndpoint().getEndpointInfo());
                }
View Full Code Here

Examples of org.apache.cxf.endpoint.ServerLifeCycleListener

            //and error out at that point.  If nothing uses ws-securitypolicy
            //no warnings/errors will display
        }
        ServerLifeCycleManager m = b.getExtension(ServerLifeCycleManager.class);
        if (m != null) {
            m.registerListener(new ServerLifeCycleListener() {
                public void startServer(Server server) {
                }
                public void stopServer(Server server) {
                    shutdownResources(server.getEndpoint().getEndpointInfo());
                }
View Full Code Here

Examples of org.apache.cxf.endpoint.ServerLifeCycleListener

        if (null == bus) {
            return;
        }
        ServerLifeCycleManager slm = bus.getExtension(ServerLifeCycleManager.class);
        if (null != slm) {
            slm.registerListener(new ServerLifeCycleListener() {
                public void startServer(Server server) {
                    RMManager.this.startServer(server);
                }
                public void stopServer(Server server) {
                    RMManager.this.stopServer(server);
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.