Package org.apache.felix.dm
Interface ComponentDeclaration
public interface ComponentDeclaration
Describes a component. Component declarations form descriptions of components
that are managed by the dependency manager. They can be used to query their state
for monitoring tools. The dependency manager shell command is an example of
such a tool.
- Author:
- Felix Project Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]Names for the states of this component.static final intState constant for a registered component.static final intState constant for an unregistered component. -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.framework.BundleContextReturns the bundle context associated with this component.Returns the execution time in nanos for each component callbacks (init/start/stop/destroy)Returns the class name of the Component implementation.Returns a list of dependencies associated with this component.Returns the dependency manager for this componentlonggetId()Returns the instance id of this component.getName()Returns the description of this component (the classname or the provided service(s))<K,V> Dictionary <K, V> Returns the service properties, or nullString[]Returns the service optionally provided by this component, or nullintgetState()Returns the state of this component.
-
Field Details
-
STATE_NAMES
Names for the states of this component. -
STATE_UNREGISTERED
static final int STATE_UNREGISTEREDState constant for an unregistered component.- See Also:
-
STATE_REGISTERED
static final int STATE_REGISTEREDState constant for a registered component.- See Also:
-
-
Method Details
-
getComponentDependencies
ComponentDependencyDeclaration[] getComponentDependencies()Returns a list of dependencies associated with this component. -
getName
String getName()Returns the description of this component (the classname or the provided service(s)) -
getClassName
String getClassName()Returns the class name of the Component implementation. -
getServices
String[] getServices()Returns the service optionally provided by this component, or null -
getServiceProperties
Returns the service properties, or null -
getState
int getState()Returns the state of this component. -
getId
long getId()Returns the instance id of this component. -
getBundleContext
org.osgi.framework.BundleContext getBundleContext()Returns the bundle context associated with this component. -
getDependencyManager
DependencyManager getDependencyManager()Returns the dependency manager for this component -
getCallbacksTime
Returns the execution time in nanos for each component callbacks (init/start/stop/destroy)
-