public interface ScrService
ScrService represents the Declarative Services main
controller also known as the Service Component Runtime or SCR for short.
It provides access to the components managed the SCR.| Modifier and Type | Method and Description |
|---|---|
Component |
getComponent(long componentId)
Returns the component whose component.id matches the given
componentId or null if no component with the
given id is currently managed. |
Component[] |
getComponents()
Returns an array of all components managed by this SCR instance.
|
Component[] |
getComponents(Bundle bundle)
Returns an array of all components managed by this SCR instance on
behalf of the given bundle.
|
Component[] |
getComponents(String componentName)
Returns the components whose
component.name matches the
given componentName or null if no component
with the given name is currently managed. |
Component[] getComponents()
null
is returned.null if there are none.Component getComponent(long componentId)
componentId or null if no component with the
given id is currently managed.componentId - The ID of the component to returnnull if no such
component exists.Component[] getComponents(String componentName)
component.name matches the
given componentName or null if no component
with the given name is currently managed.
If the component name refers to a component factory component or a component configured with multiple factory configurations this method returns multiple component instances.
componentName - The name of the component to returnnull if no such
component exists.Component[] getComponents(Bundle bundle)
null is returned.bundle - The Bundle whose components are to be
returned.null if the bundle
has none.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.