Package org.osgi.service.cm

Examples of org.osgi.service.cm.ConfigurationListener


    }

    @Override
    protected void setUp() throws Exception {
        final CountDownLatch latch = new CountDownLatch(1);
        ConfigurationListener listener = new ConfigurationListener() {
            @Override
            public void configurationEvent(ConfigurationEvent event) {
                if (ORG_AMDATU_WINK_PID.equals(event.getPid()) && event.getType() == ConfigurationEvent.CM_UPDATED) {
                    latch.countDown();
                }
View Full Code Here


            final CountDownLatch latch = new CountDownLatch(1);
            final int configEvent = (props != null) ? ConfigurationEvent.CM_UPDATED : ConfigurationEvent.CM_DELETED;

            Configuration config = configAdmin.getConfiguration(pid, null);

            reg = m_context.registerService(ConfigurationListener.class.getName(), new ConfigurationListener() {
                @Override
                public void configurationEvent(ConfigurationEvent event) {
                    if (pid.equals(event.getPid()) && event.getType() == configEvent) {
                        // NOTE: this is delivered asynchronously, so it might well be that we receive the event before the configuration is actually updated...
                        try {
View Full Code Here

TOP

Related Classes of org.osgi.service.cm.ConfigurationListener

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.