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(org.osgi.framework.Bundle bundle)
Reuturns an array of all components managed by this SCR instance on
behalf of the given bundle.
|
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(org.osgi.framework.Bundle bundle)
null
is returned.bundle
- The Bundle
whose components are to be
returned.null
if the bundle
has none.Copyright © 2006–2013 The Apache Software Foundation. All rights reserved.