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 Details

    • STATE_NAMES

      static final String[] STATE_NAMES
      Names for the states of this component.
    • STATE_UNREGISTERED

      static final int STATE_UNREGISTERED
      State constant for an unregistered component.
      See Also:
    • STATE_REGISTERED

      static final int STATE_REGISTERED
      State 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

      <K, V> Dictionary<K,V> 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

      Map<String,Long> getCallbacksTime()
      Returns the execution time in nanos for each component callbacks (init/start/stop/destroy)