Package org.osgi.service.component.runtime.dto

Examples of org.osgi.service.component.runtime.dto.ComponentConfigurationDTO


    @Test
    public void test_deactivate_fail() throws Exception
    {
        final String componentname = "ActivatorComponent.deactivate.fail";

        ComponentConfigurationDTO cc = getDisabledConfigurationAndEnable(componentname, ComponentConfigurationDTO.ACTIVE);

        disableAndCheck( cc );
    }
View Full Code Here


    @Test
    public void test_activate_register_service() throws Exception
    {
        final String componentname = "ActivatorComponent.activate.with.bind";

        ComponentConfigurationDTO cc = getDisabledConfigurationAndEnable(componentname, ComponentConfigurationDTO.ACTIVE);

        ActivatorComponent ac = ActivatorComponent.getInstance();
        TestCase.assertNotNull( ac.getSimpleService() );
       
        disableAndCheck( cc );
View Full Code Here

    @Test
    public void test_activate_register_service_delayed() throws Exception
    {
        final String componentname = "ActivatorComponent.activate.delayed.with.bind";

        ComponentConfigurationDTO cc = getDisabledConfigurationAndEnable(componentname, ComponentConfigurationDTO.SATISFIED);

        getServiceFromConfiguration(cc, ActivatorComponent.class);

        findComponentConfigurationByName(componentname, ComponentConfigurationDTO.ACTIVE);
View Full Code Here

    @Test
    public void test_activate_service_factory_register_service() throws Exception
    {
        final String componentname = "ActivatorComponent.activate.service.factory.with.bind";

        ComponentConfigurationDTO cc = getDisabledConfigurationAndEnable(componentname, ComponentConfigurationDTO.SATISFIED);

        getServiceFromConfiguration(cc, ActivatorComponent.class);

        findComponentConfigurationByName(componentname, ComponentConfigurationDTO.ACTIVE);
View Full Code Here

    }


    private void testRequiredDependency(final String componentname) throws Exception
    {
        ComponentConfigurationDTO cc = getDisabledConfigurationAndEnable(componentname, ComponentConfigurationDTO.UNSATISFIED_REFERENCE);

        SimpleServiceImpl ss = SimpleServiceImpl.create( bundleContext, "foo" );
       
        findComponentConfigurationByName(componentname, ComponentConfigurationDTO.SATISFIED);
View Full Code Here

TOP

Related Classes of org.osgi.service.component.runtime.dto.ComponentConfigurationDTO

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.