Interface ComponentDependencyDeclaration

All Known Subinterfaces:
BundleDependency, ConfigurationDependency, ResourceDependency, ServiceDependency
All Known Implementing Classes:
AbstractDependency

public interface ComponentDependencyDeclaration
Describes a component dependency. They form descriptions of dependencies 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
    State constant for an available, optional dependency.
    static final int
    State constant for an available, required dependency.
    static final String[]
    Names for the states of this dependency.
    static final int
    State constant for an optional dependency that has not been started yet.
    static final int
    State constant for a required dependency that has not been started yet.
    static final int
    State constant for an unavailable, optional dependency.
    static final int
    State constant for an unavailable, required dependency.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the Dependency filter or null
    Returns the name of this dependency (a generic name with optional info separated by spaces)
    Returns the simple dependency name (service classname for example)
    int
    Returns the state of this dependency.
    Returns the name of the type of this dependency.
  • Field Details

    • STATE_NAMES

      static final String[] STATE_NAMES
      Names for the states of this dependency.
    • STATE_UNAVAILABLE_OPTIONAL

      static final int STATE_UNAVAILABLE_OPTIONAL
      State constant for an unavailable, optional dependency.
      See Also:
    • STATE_AVAILABLE_OPTIONAL

      static final int STATE_AVAILABLE_OPTIONAL
      State constant for an available, optional dependency.
      See Also:
    • STATE_UNAVAILABLE_REQUIRED

      static final int STATE_UNAVAILABLE_REQUIRED
      State constant for an unavailable, required dependency.
      See Also:
    • STATE_AVAILABLE_REQUIRED

      static final int STATE_AVAILABLE_REQUIRED
      State constant for an available, required dependency.
      See Also:
    • STATE_OPTIONAL

      static final int STATE_OPTIONAL
      State constant for an optional dependency that has not been started yet.
      See Also:
    • STATE_REQUIRED

      static final int STATE_REQUIRED
      State constant for a required dependency that has not been started yet.
      See Also:
  • Method Details

    • getName

      String getName()
      Returns the name of this dependency (a generic name with optional info separated by spaces)
    • getSimpleName

      String getSimpleName()
      Returns the simple dependency name (service classname for example)
    • getFilter

      String getFilter()
      Returns the Dependency filter or null
    • getType

      String getType()
      Returns the name of the type of this dependency.
    • getState

      int getState()
      Returns the state of this dependency.