Class ServiceComponentRuntimeImpl
java.lang.Object
org.apache.felix.scr.impl.runtime.ServiceComponentRuntimeImpl
- All Implemented Interfaces:
EventListener
,org.osgi.framework.BundleListener
,org.osgi.framework.ServiceListener
,org.osgi.service.component.runtime.ServiceComponentRuntime
public class ServiceComponentRuntimeImpl
extends Object
implements org.osgi.service.component.runtime.ServiceComponentRuntime, org.osgi.framework.ServiceListener, org.osgi.framework.BundleListener
-
Constructor Summary
ConstructorsConstructorDescriptionServiceComponentRuntimeImpl
(org.osgi.framework.BundleContext context, org.apache.felix.scr.impl.ComponentRegistry componentRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bundleChanged
(org.osgi.framework.BundleEvent event) org.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) void
serviceChanged
(org.osgi.framework.ServiceEvent event)
-
Constructor Details
-
ServiceComponentRuntimeImpl
public ServiceComponentRuntimeImpl(org.osgi.framework.BundleContext context, org.apache.felix.scr.impl.ComponentRegistry componentRegistry)
-
-
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
- See Also:
-
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
- See Also:
-
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
- See Also:
-
isComponentEnabled
public boolean isComponentEnabled(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description) - Specified by:
isComponentEnabled
in interfaceorg.osgi.service.component.runtime.ServiceComponentRuntime
- See Also:
-
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
- See Also:
-
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
- See Also:
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event) - Specified by:
serviceChanged
in interfaceorg.osgi.framework.ServiceListener
-