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
}
}
Aggregations