Search in sources :

Example 1 with HTTPJettyTransportNamespaceHandler

use of org.apache.cxf.transport.http_jetty.blueprint.HTTPJettyTransportNamespaceHandler in project cxf by apache.

the class HTTPJettyTransportActivator method start.

public void start(BundleContext ctx) throws Exception {
    this.context = ctx;
    reg = context.registerService(ManagedServiceFactory.class, this, CollectionUtils.singletonDictionary(Constants.SERVICE_PID, FACTORY_PID));
    mbeanServerTracker = new ServiceTracker<>(ctx, MBeanServer.class, null);
    try {
        BlueprintNameSpaceHandlerFactory nsHandlerFactory = new BlueprintNameSpaceHandlerFactory() {

            @Override
            public Object createNamespaceHandler() {
                return new HTTPJettyTransportNamespaceHandler();
            }
        };
        NamespaceHandlerRegisterer.register(context, nsHandlerFactory, "http://cxf.apache.org/transports/http-jetty/configuration");
    } catch (NoClassDefFoundError e) {
    // Blueprint not available, ignore
    }
}
Also used : BlueprintNameSpaceHandlerFactory(org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory) HTTPJettyTransportNamespaceHandler(org.apache.cxf.transport.http_jetty.blueprint.HTTPJettyTransportNamespaceHandler) ManagedServiceFactory(org.osgi.service.cm.ManagedServiceFactory) MBeanServer(javax.management.MBeanServer)

Aggregations

MBeanServer (javax.management.MBeanServer)1 BlueprintNameSpaceHandlerFactory (org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory)1 HTTPJettyTransportNamespaceHandler (org.apache.cxf.transport.http_jetty.blueprint.HTTPJettyTransportNamespaceHandler)1 ManagedServiceFactory (org.osgi.service.cm.ManagedServiceFactory)1