Search in sources :

Example 1 with HTTPUndertowTransportNamespaceHandler

use of org.apache.cxf.transport.http_undertow.blueprint.HTTPUndertowTransportNamespaceHandler in project cxf by apache.

the class HTTPUndertowTransportActivator method start.

public void start(BundleContext ctx) throws Exception {
    this.context = ctx;
    reg = context.registerService(ManagedServiceFactory.class.getName(), 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 HTTPUndertowTransportNamespaceHandler();
            }
        };
        NamespaceHandlerRegisterer.register(context, nsHandlerFactory, "http://cxf.apache.org/transports/http-undertow/configuration");
    } catch (NoClassDefFoundError e) {
    // Blueprint not available, ignore
    }
}
Also used : BlueprintNameSpaceHandlerFactory(org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory) HTTPUndertowTransportNamespaceHandler(org.apache.cxf.transport.http_undertow.blueprint.HTTPUndertowTransportNamespaceHandler) MBeanServer(javax.management.MBeanServer)

Aggregations

MBeanServer (javax.management.MBeanServer)1 BlueprintNameSpaceHandlerFactory (org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory)1 HTTPUndertowTransportNamespaceHandler (org.apache.cxf.transport.http_undertow.blueprint.HTTPUndertowTransportNamespaceHandler)1