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