Examples of enableComponent()


Examples of org.apache.felix.scr.impl.BundleComponentActivator.enableComponent()

    public void enableComponent( String name )
    {
        BundleComponentActivator activator = m_componentManager.getActivator();
        if ( activator != null )
        {
            activator.enableComponent( name );
        }
    }


    public void disableComponent( String name )
View Full Code Here

Examples of org.apache.felix.scr.impl.BundleComponentActivator.enableComponent()

    public void enableComponent( String name )
    {
        BundleComponentActivator activator = m_componentManager.getActivator();
        if ( activator != null )
        {
            activator.enableComponent( name );
        }
    }


    public void disableComponent( String name )
View Full Code Here

Examples of org.osgi.service.component.ComponentContext.enableComponent()

            };
            syscontext.addServiceListener(listener, "(objectClass=" + BootstrapConfiguration.class.getName() + ")");

            // Enable the {@link BootstrapConfiguration} component and await the registration of the respective service
            LOGGER.debug("Enable BootstrapConfiguration");
            componentContext.enableComponent(BootstrapConfiguration.COMPONENT_NAME);
            if (!registerLatch.await(30, TimeUnit.SECONDS))
                throw new TimeoutException("Timeout for registering BootstrapConfiguration service");

            return (BootstrapConfiguration) syscontext.getService(sref.get());
View Full Code Here

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

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

    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.