Package io.openems.edge.common.test
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.util.promise.Promise<Void>
disableComponent
(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description) org.osgi.util.promise.Promise<Void>
enableComponent
(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description) Collection<org.osgi.service.component.runtime.dto.ComponentConfigurationDTO>
getComponentConfigurationDTOs
(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description) org.osgi.service.component.runtime.dto.ComponentDescriptionDTO
getComponentDescriptionDTO
(org.osgi.framework.Bundle bundle, String name) Collection<org.osgi.service.component.runtime.dto.ComponentDescriptionDTO>
getComponentDescriptionDTOs
(org.osgi.framework.Bundle... bundles) boolean
isComponentEnabled
(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
-
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 interfaceorg.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 interfaceorg.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 interfaceorg.osgi.service.component.runtime.ServiceComponentRuntime
-
isComponentEnabled
public boolean isComponentEnabled(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description) - Specified by:
isComponentEnabled
in interfaceorg.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 interfaceorg.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 interfaceorg.osgi.service.component.runtime.ServiceComponentRuntime
-