Examples of EnableComponent


Examples of org.apache.felix.scr.integration.components.EnableComponent

        final String enable = "org.apache.felix.scr.integration.components.enable";
        final String name = "org.apache.felix.scr.integration.components.SimpleComponent";
       
        ComponentConfigurationDTO dto = findComponentConfigurationByName(enable, ComponentConfigurationDTO.SATISFIED);
       
        EnableComponent ec = getServiceFromConfiguration(dto, EnableComponent.class);
       
        TestCase.assertEquals(0, SimpleComponent.INSTANCES.size());

        ec.enable(name);
        delay();
        TestCase.assertEquals(1, SimpleComponent.INSTANCES.size());
        ec.enable(name);
        delay();
        TestCase.assertEquals(1, SimpleComponent.INSTANCES.size());

    }
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.