Search in sources :

Example 1 with RESTService

use of org.apache.openejb.server.rest.RESTService in project tomee by apache.

the class TomeeJaxRsService method afterApplicationCreated.

public void afterApplicationCreated(@Observes final AfterApplicationCreated event) {
    // 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);
    final RESTService component = SystemInstance.get().getComponent(RESTService.class);
    if (component == null) {
        return;
    }
    component.afterApplicationCreated(event.getApp(), event.getWeb());
}
Also used : RESTService(org.apache.openejb.server.rest.RESTService)

Aggregations

RESTService (org.apache.openejb.server.rest.RESTService)1