public class ComponentDependencyGraph
extends java.lang.Object
Constructor and Description |
---|
ComponentDependencyGraph() |
Modifier and Type | Method and Description |
---|---|
void |
addDependency(java.lang.String dependentName,
java.lang.String prerequisiteName)
Add a new dependency to the graph.
|
boolean |
dependsOn(java.lang.String toCheck,
java.lang.String target)
Method used for component instance dependency checking.
|
public void addDependency(java.lang.String dependentName, java.lang.String prerequisiteName)
dependentName
- The name of the dependent objectprerequisiteName
- The name of the object the dependent object should now depend onjava.lang.RuntimeException
- When adding the dependency would create a dependency looppublic boolean dependsOn(java.lang.String toCheck, java.lang.String target)
toCheck
- The value to checktarget
- The target value for dependency checking.