DependencyItem
- org.jboss.dependency.spi.DependencyItem
Tracks a given dependency. The basic contract is for the controller to invoke
resolve()
to ask the dependency whether it is resolved and
unresolve()
to clear this state. The dependency
is expected to keep track of the last state via
isResolved()
.
Implementations
AbstractDependencyItem - base implementation of the contract
Many other specializations
Attributes
Object getIDependOn()
- the name in the controller that this dependency depends upon
Object getName()
- the name of the context for which this a dependency
ControllerState getWhenRequired()
- the state when this dependency is required.
ControllerState getDependentState()
- the state the
getIDependOn
must be in before the dependency is satisfied
boolean isResolved()
- whether the dependency is resolved
boolean resolve(Controller controller)
- determine whether the dependency is resolved
void unresolve(Controller)
_ - reset the dependency to the unresolved state
Referenced by:
Comments