Package org.osgi.service.component.runtime

Examples of org.osgi.service.component.runtime.ServiceComponentRuntime.enableComponent()


        {
          TestCase.fail("no ServiceComponentRuntime");
        }
      ComponentDescriptionDTO cd = scr.getComponentDescriptionDTO(b, name);
      Assert.assertFalse("Expected component disabled", scr.isComponentEnabled(cd));
      scr.enableComponent(cd).getValue();
      Assert.assertTrue("Expected component enabled", scr.isComponentEnabled(cd));
     
      Collection<ComponentConfigurationDTO> ccs = scr.getComponentConfigurationDTOs(cd);
      Assert.assertEquals(count, ccs.size());
      for (ComponentConfigurationDTO cc: ccs) {
View Full Code Here


    protected void enableAndCheck( ComponentDescriptionDTO cd ) throws InvocationTargetException, InterruptedException
    {
        ServiceComponentRuntime scr = scrTracker.getService();
        if ( scr != null )
        {
            scr.enableComponent(cd).getValue();
          Assert.assertTrue("Expected component enabled", scr.isComponentEnabled(cd));
        }
        else
        {
          throw new NullPointerException("no ServiceComponentRuntime");
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.