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
Constructors Constructor Description ServiceComponentRuntimeImpl(org.osgi.framework.BundleContext context, org.apache.felix.scr.impl.ComponentRegistry componentRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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)
-
-
-
Method Detail
-
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:
ServiceComponentRuntime.getComponentDescriptionDTOs(org.osgi.framework.Bundle[])
-
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:
ServiceComponentRuntime.getComponentDescriptionDTO(org.osgi.framework.Bundle, java.lang.String)
-
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:
ServiceComponentRuntime.getComponentConfigurationDTOs(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)
-
isComponentEnabled
public boolean isComponentEnabled(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO description)
- Specified by:
isComponentEnabled
in interfaceorg.osgi.service.component.runtime.ServiceComponentRuntime
- See Also:
ServiceComponentRuntime.isComponentEnabled(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)
-
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:
ServiceComponentRuntime.enableComponent(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)
-
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:
ServiceComponentRuntime.disableComponent(org.osgi.service.component.runtime.dto.ComponentDescriptionDTO)
-
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
-
-