Package org.osgi.service.cm

Examples of org.osgi.service.cm.ManagedService.updated()


        conf.put("baz", "zab2");
        conf.put("foo", "oof2");
        conf.put("bar", new Integer(0));
        ms = (ManagedService) osgiHelper.getRawServiceObject(msRef);
        try {
            ms.updated(conf);
        } catch (ConfigurationException e) {
            fail("Configuration Exception : " + e);
        }

        updated = (Integer) fs.fooProps().get("updated");
View Full Code Here


        conf.put("baz", "zab");
        conf.put("foo", "oof");
        conf.put("bar", new Integer(0));
        ManagedService ms = (ManagedService) osgiHelper.getRawServiceObject(msRef);
        try {
            ms.updated(conf);
        } catch (ConfigurationException e) {
            fail("Configuration Exception : " + e);
        }

        // Recheck props
View Full Code Here

        conf.put("baz", "zab2");
        conf.put("foo", "oof2");
        conf.put("bar", new Integer(0));
        ms = (ManagedService) osgiHelper.getRawServiceObject(msRef);
        try {
            ms.updated(conf);
        } catch (ConfigurationException e) {
            fail("Configuration Exception : " + e);
        }

        updated = (Integer) fs.fooProps().get("updated");
View Full Code Here

                                                    + "cxf-dsw"
                                                    + ")");
        assertNotNull(srefs);
        assertEquals(1, srefs.length);
        ManagedService ms = (ManagedService)bundleContext.getService(srefs[0]);
        ms.updated(props);
        ClassLoader contextLoader = Thread.currentThread().getContextClassLoader();
        Thread.currentThread().setContextClassLoader(JAXRSClientFactoryBean.class.getClassLoader());
        installBundle("org.apache.cxf.dosgi.samples", "cxf-dosgi-ri-samples-greeter-rest-impl", null, "jar");
       
        // TODO : get this address using a DistributionProvider interface
View Full Code Here

                                                    + "cxf-dsw"
                                                    + ")");
        assertNotNull(srefs);
        assertEquals(1, srefs.length);
        ManagedService ms = (ManagedService)bundleContext.getService(srefs[0]);
        ms.updated(props);
       
        ClassLoader contextLoader = Thread.currentThread().getContextClassLoader();
        Thread.currentThread().setContextClassLoader(ClientProxyFactoryBean.class.getClassLoader());
        installBundle("org.apache.cxf.dosgi.samples", "cxf-dosgi-ri-samples-greeter-impl", null, "jar");
       
View Full Code Here

                    if (dictionary == null) {
                        temp = null;
                    } else {
                        temp = new CaseInsensitiveDictionary(dictionary);
                    }
                    service.updated(temp);
                } catch (ConfigurationException e) {
                    log.log(reference, LogService.LOG_ERROR,
                            "updated(" + dictionary + ") method failed:",
                            e);
                } catch (Throwable throwable) {
View Full Code Here

        // Global configuration handler and update this configuration
        // immediately
        ManagedService globalConfigurator = new GlobalConfigurator(
            logConfigManager, getBundleConfiguration(context));
        globalConfigurator.updated(null);

        // get our own logger
        log = LoggerFactory.getLogger(LogServiceFactory.class);
        log.info("LogManager: Logging set up from context");
View Full Code Here

        // Global configuration handler and update this configuration
        // immediately
        ManagedService globalConfigurator = new GlobalConfigurator(
            logConfigManager, getBundleConfiguration(context));
        globalConfigurator.updated(null);

        // get our own logger
        log = LoggerFactory.getLogger(LogServiceFactory.class);
        log.info("LogManager: Logging set up from context");
View Full Code Here

        if ( doUpdate )
        {
            try
            {
                srv.updated( properties );
                configs.record( configPid, null, revision );
            }
            catch ( Throwable t )
            {
                this.handleCallBackError( t, service, configPid );
View Full Code Here

        }
      } else {
        ManagedService ms = msTracker.findPid(config.getPid());
        if (ms != null) {
          try {
            ms.updated(config.getProperties());
          } catch (ConfigurationException e) {
            exceptions.add(e);
          }
        }
      }
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.