|
Knopflerfish OSGi 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The 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.
| Method Summary | |
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)
Reuturns an array of all components managed by this SCR instance on behalf of the given bundle. |
Component[] |
getComponents(java.lang.String componentName)
Returns the components whose component.name matches the
given componentName or null if no component
with the given name is currently managed. |
| Method Detail |
public Component[] getComponents()
null
is returned.
null if there are none.public Component getComponent(long componentId)
componentId or null if no component with the
given id is currently managed.
componentId - The ID of the component to return
null if no such
component exists.public Component[] getComponents(java.lang.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 return
null if no such
component exists.public Component[] getComponents(Bundle bundle)
null is returned.
bundle - The Bundle whose components are to be
returned.
null if the bundle
has none.
|
Knopflerfish OSGi 3.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||