org.apache.felix.scr.impl
Class ComponentRegistry

java.lang.Object
  extended by org.apache.felix.scr.impl.ComponentRegistry
All Implemented Interfaces:
ScrService

public class ComponentRegistry
extends Object
implements ScrService

The ComponentRegistry TODO

Author:
fmeschbe

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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getComponents

public Component[] getComponents()
Description copied from interface: ScrService
Returns an array of all components managed by this SCR instance. The components are returned in ascending order of their component.id. If there are no components currently managed by the SCR, null is returned.

Specified by:
getComponents in interface ScrService
Returns:
The components or null if there are none.

getComponents

public Component[] getComponents(Bundle bundle)
Description copied from interface: ScrService
Reuturns an array of all components managed by this SCR instance on behalf of the given bundle. The components are returned in ascending order of their component.id. If there are no components managed by the SCR for the given bundle, null is returned.

Specified by:
getComponents in interface ScrService
Parameters:
bundle - The Bundle whose components are to be returned.
Returns:
The bundle's components or null if the bundle has none.

getComponent

public Component getComponent(long componentId)
Description copied from interface: ScrService
Returns the component whose component.id matches the given componentId or null if no component with the given id is currently managed.

Specified by:
getComponent in interface ScrService
Parameters:
componentId - The ID of the component to return
Returns:
The indicated component or null if no such component exists.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.