Package org.apache.aries.jmx.test.bundleb.impl

Examples of org.apache.aries.jmx.test.bundleb.impl.B


     * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
     */
    public void start(BundleContext context) throws Exception {
        Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(Constants.SERVICE_PID, "org.apache.aries.jmx.test.ServiceB");
        plainRegistration = context.registerService(InterfaceB.class.getName(), new B(), props);
        Dictionary<String, Object> fprops = new Hashtable<String, Object>();
        fprops.put(Constants.SERVICE_PID, "jmx.test.B.factory");
        msfRegistration = context.registerService(ManagedServiceFactory.class.getName(), new MSF(), fprops);
    }
View Full Code Here


    public void updated(String pid, Dictionary dictionary) throws ConfigurationException {
        if (configured.containsKey(pid)) {
            configured.get(pid).configure(dictionary);
        } else {
            InterfaceB ser = new B();
            ser.configure(dictionary);
            configured.put(pid, ser);
        }
    }
View Full Code Here

     * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
     */
    public void start(BundleContext context) throws Exception {
        Dictionary<String, Object> props = new Hashtable<String, Object>();
        props.put(Constants.SERVICE_PID, "org.apache.aries.jmx.test.ServiceB");
        plainRegistration = context.registerService(InterfaceB.class.getName(), new B(), props);
        Dictionary<String, Object> fprops = new Hashtable<String, Object>();
        fprops.put(Constants.SERVICE_PID, "jmx.test.B.factory");
        msfRegistration = context.registerService(ManagedServiceFactory.class.getName(), new MSF(), fprops);
    }
View Full Code Here

    public void updated(String pid, Dictionary dictionary) throws ConfigurationException {
        if (configured.containsKey(pid)) {
            configured.get(pid).configure(dictionary);
        } else {
            InterfaceB ser = new B();
            ser.configure(dictionary);
            configured.put(pid, ser);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.aries.jmx.test.bundleb.impl.B

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.