Search in sources :

Example 1 with CXFAPINamespaceHandler

use of org.apache.cxf.internal.CXFAPINamespaceHandler 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");
}
Also used : BlueprintNameSpaceHandlerFactory(org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory) CXFAPINamespaceHandler(org.apache.cxf.internal.CXFAPINamespaceHandler) ConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin) ManagedServiceFactory(org.osgi.service.cm.ManagedServiceFactory)

Aggregations

BlueprintNameSpaceHandlerFactory (org.apache.cxf.bus.blueprint.BlueprintNameSpaceHandlerFactory)1 CXFAPINamespaceHandler (org.apache.cxf.internal.CXFAPINamespaceHandler)1 ConfigurationAdmin (org.osgi.service.cm.ConfigurationAdmin)1 ManagedServiceFactory (org.osgi.service.cm.ManagedServiceFactory)1