Examples of serviceRegistered()


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

                // Not one that we wanted, probably an error somewhere but
                // just ignore it.
                return null;
            }

            handler.serviceRegistered(reference);

            // Increment the use count on the service so that it doesn't go
            // away. Otherwise, delayed declarative services components
            // could be deactivated.
            bundleContext.getService(reference);
View Full Code Here

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

        ServiceHandler factoryHandler =
                new ManagedServiceFactoryHandler(manager);

        // Register a ManagedServiceFactory before a suitable configuration
        // has been created.
        factoryHandler.serviceRegistered(unauthorizedFactoryReferenceMock);

        // 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);
View Full Code Here

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

        factoryHandler.serviceRegistered(unauthorizedFactoryReferenceMock);

        // 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 =
View Full Code Here

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

        // reverted to null.
        checkLocationBinding(PREFIX + "a", null);

        // Reregister another ManagedServiceFactory with the same PID but from
        // a different bundle.
        factoryHandler.serviceRegistered(attackingFactoryReferenceMock);

        // Check to see if the information has been correctly persisted.
        checkPersistedConfigurations(
                new InternalConfiguration[]{
                        new ConfigurationImpl(PREFIX + "a", FACTORY_PID1, null,
View Full Code Here

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

                "Configuration with pid 'PID2' for factory 'FACTORY-PID' is " +
                        "bound to '" + ATTACKING_BUNDLE_LOCATION +
                        "' instead of '" + UNAUTHORIZED_BUNDLE_LOCATION +
                        "' and so will be ignored");

        handler.serviceRegistered(managedServiceFactoryReferenceMock);

        // Creating a configuration for a factory PID that has been bound to
        // a specific bundle (the bundle that registered the
        // ManagedServiceFactory with the matching factory PID) should work
        // for the owning bundle and an authorized admin.
View Full Code Here

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

        ServiceHandler serviceHandler = new ManagedServiceHandler(manager);

        // Register a ManagedService before a suitable configuration
        // has been created.
        serviceHandler.serviceRegistered(unauthorizedServiceReferenceMock);

        // 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);
View Full Code Here

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

        serviceHandler.serviceRegistered(unauthorizedServiceReferenceMock);

        // 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 =
View Full Code Here

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

        // reverted to null.
        checkLocationBinding(SERVICE_PID1, null);

        // Reregister another ManagedServiceFactory with the same PID but from
        // a different bundle.
        serviceHandler.serviceRegistered(attackingServiceReferenceMock);

        // Check to see if the information has been correctly persisted.
        checkPersistedConfigurations(
                new InternalConfiguration[]{
                        new ConfigurationImpl(SERVICE_PID1, null, 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.