Package org.openengsb.core.api

Examples of org.openengsb.core.api.VirtualConnectorProvider


        Filter virtualConnectorFilter = FilterUtils.makeFilterForClass(VirtualConnectorProvider.class);
        virtualConnectorProviderTracker =
            new ServiceTracker(bundleContext, virtualConnectorFilter, new ServiceTrackerCustomizer() {
                @Override
                public void removedService(ServiceReference reference, Object service) {
                    VirtualConnectorProvider provider = (VirtualConnectorProvider) service;
                    Iterator<Registration> factoryServices = getFactoriesForVirtualConnectorForRemoval(provider);
                    unregisterAllRegistrations(factoryServices);
                }

                @Override
View Full Code Here


            }
        });
    }

    private void createNewFactoryForVirtualConnectorProvider(ServiceReference reference) {
        VirtualConnectorProvider virtualConnectorProvider =
            (VirtualConnectorProvider) bundleContext.getService(reference);
        for (DomainProvider p : getServicesFromTracker(domainProviderTracker, DomainProvider.class)) {
            ServiceRegistration factoryService = registerConnectorFactoryService(virtualConnectorProvider, p);
            ServiceRegistration providerService = registerConnectorProviderService(virtualConnectorProvider, p);
            registeredFactories.add(new Registration(virtualConnectorProvider, p, factoryService, providerService));
View Full Code Here

TOP

Related Classes of org.openengsb.core.api.VirtualConnectorProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.