Examples of afterApplicationCreated()


Examples of org.apache.openejb.server.cxf.rs.CxfRSService.afterApplicationCreated()

        final CxfRSService server = new CxfRSService();
        try {
            server.init(new Properties());
            server.start();

            server.afterApplicationCreated(new AssemblerAfterApplicationCreated(info, context, Collections.<BeanContext>emptyList()));

            {
                final ClassLoader beforeLoader = SystemInstance.get().getComponent(ContainerSystem.class).getWebContext("test").getClassLoader();
                assertSame(loader, beforeLoader);
                assertNotNull(beforeLoader);
View Full Code Here

Examples of org.apache.openejb.server.cxf.rs.CxfRSService.afterApplicationCreated()

            loader.start();
            // TomcatWebAppBuilder ill catch start event from StandardContext and force a classloader
            Reflections.set(loader, "parent", ParentClassLoaderFinder.Helper.get());

            server.afterApplicationCreated(new AssemblerAfterApplicationCreated(info, context, Collections.<BeanContext>emptyList()));

            {
                final ClassLoader afterLoader = SystemInstance.get().getComponent(ContainerSystem.class).getWebContext("test").getClassLoader();
                assertSame(loader, afterLoader);
                assertNotNull(afterLoader);
View Full Code Here

Examples of org.apache.openejb.server.cxf.rs.CxfRSService.afterApplicationCreated()

        final CxfRSService server = new CxfRSService();
        try {
            server.init(new Properties());
            server.start();

            server.afterApplicationCreated(new AssemblerAfterApplicationCreated(info, context, Collections.<BeanContext>emptyList()));

            {
                final ClassLoader beforeLoader = SystemInstance.get().getComponent(ContainerSystem.class).getWebContext("test").getClassLoader();
                assertSame(loader, beforeLoader);
                assertNotNull(beforeLoader);
View Full Code Here

Examples of org.apache.openejb.server.cxf.rs.CxfRSService.afterApplicationCreated()

            resources.start();
            loader.start();
            // TomcatWebAppBuilder ill catch start event from StandardCo1ntext and force a classloader
            Reflections.set(loader, "parent", ParentClassLoaderFinder.Helper.get());

            server.afterApplicationCreated(new AssemblerAfterApplicationCreated(info, context, Collections.<BeanContext>emptyList()));

            {
                final ClassLoader afterLoader = SystemInstance.get().getComponent(ContainerSystem.class).getWebContext("test").getClassLoader();
                assertSame(loader, afterLoader);
                assertNotNull(afterLoader);
View Full Code Here

Examples of org.apache.openejb.server.rest.RESTService.afterApplicationCreated()

        // required for Pojo Web Services because when Assembler creates the application
        // the CoreContainerSystem does not contain the WebContext
        // see also the start method getContainerSystem().addWebDeployment(webContext);
        RESTService component = SystemInstance.get().getComponent(RESTService.class);
        if (component == null) return;
        component.afterApplicationCreated(webApp);
    }

}
View Full Code Here

Examples of org.apache.openejb.server.rest.RESTService.afterApplicationCreated()

        // required for Pojo Web Services because when Assembler creates the application
        // the CoreContainerSystem does not contain the WebContext
        // see also the start method getContainerSystem().addWebDeployment(webContext);
        RESTService component = SystemInstance.get().getComponent(RESTService.class);
        if (component == null) return;
        component.afterApplicationCreated(appInfo, webApp);
    }

}
View Full Code Here

Examples of org.apache.openejb.server.rest.RESTService.afterApplicationCreated()

        // see also the start method getContainerSystem().addWebDeployment(webContext);
        final RESTService component = SystemInstance.get().getComponent(RESTService.class);
        if (component == null) {
            return;
        }
        component.afterApplicationCreated(event.getApp(), event.getWeb());
    }

}
View Full Code Here

Examples of org.apache.openejb.server.rest.RESTService.afterApplicationCreated()

        // required for Pojo Web Services because when Assembler creates the application
        // the CoreContainerSystem does not contain the WebContext
        // see also the start method getContainerSystem().addWebDeployment(webContext);
        RESTService component = SystemInstance.get().getComponent(RESTService.class);
        if (component == null) return;
        component.afterApplicationCreated(event.getApp(), event.getWeb());
    }

}
View Full Code Here

Examples of org.apache.openejb.server.webservices.WsService.afterApplicationCreated()

        WsService wsService = SystemInstance.get().getComponent(WsService.class);
        if (wsService != null) {
            List<WebAppInfo> webApps = contextInfo.appInfo.webApps;
            for (WebAppInfo webApp : webApps) {
                wsService.afterApplicationCreated(webApp);
            }
        }

        // replace any webservices with the webservice servlet
        // HACK: use a temp class loader because the class may have been loaded before
View Full Code Here

Examples of org.apache.openejb.server.webservices.WsService.afterApplicationCreated()

        // required for Pojo Web Services because when Assembler creates the application
        // the CoreContainerSystem does not contain the WebContext
        // see also the start method getContainerSystem().addWebDeployment(webContext);
        WsService component = SystemInstance.get().getComponent(WsService.class);
        if (component == null) return;
        component.afterApplicationCreated(webApp);
    }
}
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.