|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rafa.dep.DependencyManager
public class DependencyManager
Dependent manager.
Constructor Summary | |
---|---|
DependencyManager(Dependent dependent)
|
Method Summary | |
---|---|
void |
addDependency(Dependency newDependency)
Adds a dependency. |
void |
clearDependencies()
Removes all of the dependencies. |
java.util.Collection<Dependency> |
getDependencies()
|
java.util.Collection<Dependency> |
getDependencies(java.lang.Object dep)
Gets the dependencies on a given object, including the details. |
java.util.Collection<java.lang.Object> |
getDependencyTargets()
Gets the dependencies, that is the directly required objects themselves, with no further details. |
boolean |
hasDependency(java.lang.Object dep)
Checks that a dependency is not included in a dependency tree. |
void |
removeDependencies(java.lang.Object target)
Removes every dependency on a given target. |
void |
removeDependency(Dependency dep)
Removes a single dependency. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DependencyManager(Dependent dependent)
Method Detail |
---|
public boolean hasDependency(java.lang.Object dep)
dep
-
true
if newDependency is already present in depspublic java.util.Collection<java.lang.Object> getDependencyTargets()
public java.util.Collection<Dependency> getDependencies()
public java.util.Collection<Dependency> getDependencies(java.lang.Object dep)
dep
-
null
if there is none.public void addDependency(Dependency newDependency) throws CircularDependencyException
newDependency
- the added dependency
CircularDependencyException
- if there is a circular dependencypublic void removeDependency(Dependency dep)
dep
- public void removeDependencies(java.lang.Object target)
target
- public void clearDependencies()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |