Examples of serviceUnregistering()


Examples of com.volantis.osgi.cm.ServiceHandler.serviceUnregistering()

        public void removedService(
                ServiceReference reference, Object service) {

            ServiceHandler handler = (ServiceHandler) service;

            handler.serviceUnregistering(reference);

            // Decrement the use count on the service as we are not interested
            // in it anymore.
            bundleContext.ungetService(reference);
        }
View Full Code Here

Examples of com.volantis.osgi.cm.factory.ManagedServiceFactoryHandler.serviceUnregistering()

        // Attempt to register another factory for the same pid from a
        // different bundle. This should fail and log a warning. Then make sure
        // that the other service listener events do not fail.
        factoryHandler.serviceRegistered(attackingFactoryReferenceMock);
        factoryHandler.serviceModified(attackingFactoryReferenceMock);
        factoryHandler.serviceUnregistering(attackingFactoryReferenceMock);

        // Create a couple of factory configurations.
        Configuration fc1_1 =
                authorizedAdmin.createFactoryConfiguration(FACTORY_PID1, null);
        fc1_1.update(new Hashtable());
View Full Code Here

Examples of com.volantis.osgi.cm.factory.ManagedServiceFactoryHandler.serviceUnregistering()

        // The ManagedServiceFactory service has changed.
        factoryHandler.serviceModified(unauthorizedFactoryReferenceMock);

        // The ManagedServiceFactory service has unregistered.
        factoryHandler.serviceUnregistering(unauthorizedFactoryReferenceMock);

        // Make sure that the configurations that were created without any
        // specific bundle location and have not since been deleted have
        // reverted to null.
        checkLocationBinding(PREFIX + "a", null);
View Full Code Here

Examples of com.volantis.osgi.cm.service.ManagedServiceHandler.serviceUnregistering()

        // Attempt to register another factory for the same pid from a
        // different bundle. This should fail and log a warning. Then make sure
        // that the other service listener events do not fail.
        serviceHandler.serviceRegistered(attackingServiceReferenceMock);
        serviceHandler.serviceModified(attackingServiceReferenceMock);
        serviceHandler.serviceUnregistering(attackingServiceReferenceMock);

        // Create the configuration.
        Configuration c1 =
                unauthorizedAdmin.getConfiguration(SERVICE_PID1);
        c1.update(new Hashtable());
View Full Code Here

Examples of com.volantis.osgi.cm.service.ManagedServiceHandler.serviceUnregistering()

        // The ManagedService service has changed.
        serviceHandler.serviceModified(unauthorizedServiceReferenceMock);

        // The ManagedService service has unregistered.
        serviceHandler.serviceUnregistering(unauthorizedServiceReferenceMock);

        // Make sure that the configurations that were created without any
        // specific bundle location and have not since been deleted have
        // reverted to null.
        checkLocationBinding(SERVICE_PID1, null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.