Package org.apache.felix.ipojo

Examples of org.apache.felix.ipojo.ComponentInstance.start()


                Properties props = new Properties();
                props.put(ComponentTestImpl.CURRENTLEVELPROPERTY, Integer.valueOf(i).toString());
                props.put("instance.name", UUID.randomUUID().toString());

                ComponentInstance instanceRef = ComponentTestImpl.factory.createComponentInstance(props);
                instanceRef.start();
                instance1 = (ComponentTestImpl) ((InstanceManager) instanceRef).getPojoObject();

                props.put("instance.name", UUID.randomUUID().toString());
                instanceRef = ComponentTestImpl.factory.createComponentInstance(props);
                instanceRef.start();
View Full Code Here


                instanceRef.start();
                instance1 = (ComponentTestImpl) ((InstanceManager) instanceRef).getPojoObject();

                props.put("instance.name", UUID.randomUUID().toString());
                instanceRef = ComponentTestImpl.factory.createComponentInstance(props);
                instanceRef.start();
                instance2 = (ComponentTestImpl) ((InstanceManager) instanceRef).getPojoObject();

                props = null;
            } catch (Exception e) {
                e.printStackTrace();
View Full Code Here

        prov2.stop();

        map = obs.getObservations();
        assertEquals("(2) Check list #0" , ((List) map.get("list")).size(), 0);

        prov2.start();

        map = obs.getObservations();
        assertEquals("(3) Check list #1" , ((List) map.get("list")).size(), 1);

        prov1.start();
View Full Code Here

        prov2.stop();

        map = obs.getObservations();
        assertEquals("(2) Check list #0" , ((List) map.get("list")).size(), 0);

        prov2.start();

        map = obs.getObservations();
        assertEquals("(3) Check list #1" , ((List) map.get("list")).size(), 1);

        prov1.start();
View Full Code Here

                synchronized (this) {
                    instance = m_instance;
                }
                instance.stop(); // Stop the instance
                unfreeze();
                instance.start();
            }
        } else {
            synchronized (this) {
                m_matchingRefs.remove(ref);
            }
View Full Code Here

        // Stop the instance
        instance.stop();
        Assert.assertEquals(instance.getState(), ComponentInstance.STOPPED);

        // Start the instance
        instance.start();
        Assert.assertEquals(instance.getState(), ComponentInstance.VALID);
    }

    /**
     * Test if the bind and unbind methods are called when the bind service are registered after the instance creation
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.