Examples of ConfigurationListener


Examples of org.osgi.service.cm.ConfigurationListener

        bundle.stop();
        delay();
       
        checkConfigurationCount(b2, pid, 0, -1);

        ConfigurationListener listener = new ConfigurationListener() {

            public void configurationEvent(ConfigurationEvent event)
            {
                if (event.getType() == ConfigurationEvent.CM_LOCATION_CHANGED)
                {
View Full Code Here

Examples of org.osgi.service.cm.ConfigurationListener

        bundle.stop();
        delay();
       
        checkConfigurationCount(b2, pid, 0, -1);

        ConfigurationListener listener = new ConfigurationListener() {

            public void configurationEvent(ConfigurationEvent event)
            {
                if (event.getType() == ConfigurationEvent.CM_LOCATION_CHANGED)
                {
View Full Code Here

Examples of org.osgi.service.cm.ConfigurationListener

        bundle.stop();
        delay();
       
        TestCase.assertEquals( Component.STATE_UNSATISFIED, c2.getState() );

        ConfigurationListener listener = new ConfigurationListener() {

            public void configurationEvent(ConfigurationEvent event)
            {
                if (event.getType() == ConfigurationEvent.CM_LOCATION_CHANGED)
                {
View Full Code Here

Examples of org.osgi.service.cm.ConfigurationListener

        bundle.stop();
        delay();
       
        TestCase.assertEquals( Component.STATE_UNSATISFIED, c2.getState() );

        ConfigurationListener listener = new ConfigurationListener() {

            public void configurationEvent(ConfigurationEvent event)
            {
                if (event.getType() == ConfigurationEvent.CM_LOCATION_CHANGED)
                {
View Full Code Here

Examples of org.osgi.service.cm.ConfigurationListener

        // Get the {@link ConfigurationAdmin}
        ServiceReference sref = context.getServiceReference(ConfigurationAdmin.class.getName());
        ConfigurationAdmin configAdmin = (ConfigurationAdmin) context.getService(sref);

        final CountDownLatch latch = new CountDownLatch(1);
        ConfigurationListener listener = new ConfigurationListener() {
            @Override
            public void configurationEvent(ConfigurationEvent event) {
                if (ConfiguredService.SERVICE_PID.equals(event.getPid()))
                    latch.countDown();
            }
View Full Code Here

Examples of org.osgi.service.cm.ConfigurationListener

                new ExtendedConfigurationEvent(adminServiceReference,
                        type, factoryPid, pid);

        for (int i = 0; i < references.length; i++) {
            ServiceReference reference = references[i];
            ConfigurationListener listener = (ConfigurationListener)
                    context.getService(reference);
            if (listener != null) {
                try {
                    listener.configurationEvent(event);
                } catch (Throwable t) {
                    // todo log it.
                } finally {
                    context.ungetService(reference);
                }
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.