Package org.apache.felix.dm
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
FieldsModifier and TypeFieldDescriptionstatic final intState constant for an available, optional dependency.static final intState constant for an available, required dependency.static final String[]Names for the states of this dependency.static final intState constant for an optional dependency that has not been started yet.static final intState constant for a required dependency that has not been started yet.static final intState constant for an unavailable, optional dependency.static final intState constant for an unavailable, required dependency. -
Method Summary
Modifier and TypeMethodDescriptionReturns the Dependency filter or nullgetName()Returns the name of this dependency (a generic name with optional info separated by spaces)Returns the simple dependency name (service classname for example)intgetState()Returns the state of this dependency.getType()Returns the name of the type of this dependency.
-
Field Details
-
STATE_NAMES
Names for the states of this dependency. -
STATE_UNAVAILABLE_OPTIONAL
static final int STATE_UNAVAILABLE_OPTIONALState constant for an unavailable, optional dependency.- See Also:
-
STATE_AVAILABLE_OPTIONAL
static final int STATE_AVAILABLE_OPTIONALState constant for an available, optional dependency.- See Also:
-
STATE_UNAVAILABLE_REQUIRED
static final int STATE_UNAVAILABLE_REQUIREDState constant for an unavailable, required dependency.- See Also:
-
STATE_AVAILABLE_REQUIRED
static final int STATE_AVAILABLE_REQUIREDState constant for an available, required dependency.- See Also:
-
STATE_OPTIONAL
static final int STATE_OPTIONALState constant for an optional dependency that has not been started yet.- See Also:
-
STATE_REQUIRED
static final int STATE_REQUIREDState 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.
-