DependencyInfo
- org.jboss.dependency.spi.DependencyInfo
Holds information about the dependencies of a context. It is a set of DependencyItem that must be resolved for each state before it transitions to that state.
Operations
Set<DependencyItem> getIDependOn(Class)
- retrieve the dependencies of this context of a give type (1).
Set<DependencyItem> getDependsOnMe(Class)
- (2) retrieve what depends on this context of a give type (1).
addIDependOn(DependencyItem)
- add a dependency to this context.
removeIDependOn(DependencyItem)
- remove a dependency from this context.
addDependsOnMe(DependencyItem)
- invoked when another[context|DOC-10303] resolves that this is a dependency of it.
removeDependOnMe(DependencyItem)
- invoked when this context decides it not longer satisfies the dependency.
boolean resolveDependencies(Controller controller, ControllerState)
- try to resolve all the dependencies for a given state transition, returns true when all the dependencies can be resolved.
Set<DependencyItem> getUnresolvedDependencies()
- get all the unresolved dependencies for this context.
Notes
(1) you can pass a null type to retrieve all types.
(2) this information is only filled in as the "dependsOnMe" resolves that the dependency is satisifed.
Referenced by:
Comments