use of org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory in project cxf by apache.
the class CXFActivator method start.
/**
* {@inheritDoc}
*/
public void start(BundleContext context) throws Exception {
workQueues = new ManagedWorkQueueList();
cxfBundleListener = new CXFExtensionBundleListener(context.getBundle().getBundleId());
context.addBundleListener(cxfBundleListener);
cxfBundleListener.registerExistingBundles(context);
configAdminTracker = new ServiceTracker<>(context, ConfigurationAdmin.class, null);
configAdminTracker.open();
workQueues.setConfigAdminTracker(configAdminTracker);
workQueueServiceRegistration = registerManagedServiceFactory(context, ManagedServiceFactory.class, workQueues, ManagedWorkQueueList.FACTORY_PID);
extensions = new ArrayList<>();
extensions.add(createOsgiBusListenerExtension(context));
extensions.add(createManagedWorkQueueListExtension(workQueues));
ExtensionRegistry.addExtensions(extensions);
BlueprintNameSpaceHandlerFactory factory = new BlueprintNameSpaceHandlerFactory() {
@Override
public Object createNamespaceHandler() {
return new CXFAPINamespaceHandler();
}
};
NamespaceHandlerRegisterer.register(context, factory, "http://cxf.apache.org/blueprint/core", "http://cxf.apache.org/configuration/beans", "http://cxf.apache.org/configuration/parameterized-types", "http://cxf.apache.org/configuration/security", "http://schemas.xmlsoap.org/wsdl/", "http://www.w3.org/2005/08/addressing", "http://schemas.xmlsoap.org/ws/2004/08/addressing");
}
use of org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory in project cxf by apache.
the class Activator method start.
@Override
public void start(BundleContext context) throws Exception {
try {
BlueprintNameSpaceHandlerFactory factory = new BlueprintNameSpaceHandlerFactory() {
@Override
public Object createNamespaceHandler() {
return new SoapBindingBPHandler();
}
};
NamespaceHandlerRegisterer.register(context, factory, "http://cxf.apache.org/blueprint/bindings/soap");
} catch (NoClassDefFoundError error) {
// No Blueprint is available
}
}
use of org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory in project cxf by apache.
the class Activator method start.
@Override
public void start(BundleContext context) throws Exception {
try {
BlueprintNameSpaceHandlerFactory factory = new BlueprintNameSpaceHandlerFactory() {
@Override
public Object createNamespaceHandler() {
return new ClusteringBPNamespaceHandler();
}
};
NamespaceHandlerRegisterer.register(context, factory, "http://cxf.apache.org/clustering");
} catch (NoClassDefFoundError error) {
// No Blueprint is available
}
}
use of org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory in project cxf by apache.
the class Activator method start.
@Override
public void start(BundleContext context) throws Exception {
try {
BlueprintNameSpaceHandlerFactory factory = new BlueprintNameSpaceHandlerFactory() {
@Override
public Object createNamespaceHandler() {
return new HttpNettyTransportNamespaceHandler();
}
};
NamespaceHandlerRegisterer.register(context, factory, "http://cxf.apache.org/transports/http-netty-server/configuration");
} catch (NoClassDefFoundError error) {
// No Blueprint is available
}
}
use of org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory 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