Class DummyServiceComponentRuntime

java.lang.Object
io.openems.edge.common.test.DummyServiceComponentRuntime
All Implemented Interfaces:
org.osgi.service.component.runtime.ServiceComponentRuntime

public class DummyServiceComponentRuntime extends Object implements org.osgi.service.component.runtime.ServiceComponentRuntime
  • Constructor Details

    • DummyServiceComponentRuntime

      public DummyServiceComponentRuntime()
  • Method Details

    • getComponentDescriptionDTOs

      public Collection<org.osgi.service.component.runtime.dto.ComponentDescriptionDTO> getComponentDescriptionDTOs(org.osgi.framework.Bundle... bundles)
      Specified by:
      getComponentDescriptionDTOs in interface org.osgi.service.component.runtime.ServiceComponentRuntime
    • getComponentDescriptionDTO

      public org.osgi.service.component.runtime.dto.ComponentDescriptionDTO getComponentDescriptionDTO(org.osgi.framework.Bundle bundle, String name)
      Specified by:
      getComponentDescriptionDTO in interface org.osgi.service.component.runtime.ServiceComponentRuntime
    • getComponentConfigurationDTOs

      public Collection<org.osgi.service.component.runtime.dto.ComponentConfigurationDTO> getComponentConfigurationDTOs(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
      Specified by:
      getComponentConfigurationDTOs in interface org.osgi.service.component.runtime.ServiceComponentRuntime
    • isComponentEnabled

      public boolean isComponentEnabled(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
      Specified by:
      isComponentEnabled in interface org.osgi.service.component.runtime.ServiceComponentRuntime
    • enableComponent

      public org.osgi.util.promise.Promise<Void> enableComponent(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
      Specified by:
      enableComponent in interface org.osgi.service.component.runtime.ServiceComponentRuntime
    • disableComponent

      public org.osgi.util.promise.Promise<Void> disableComponent(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
      Specified by:
      disableComponent in interface org.osgi.service.component.runtime.ServiceComponentRuntime