|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Dependency
Interface to describe a dependency of an object on another one.
Method Summary | |
---|---|
void |
addProperty(java.lang.Object key,
java.lang.Object value)
Adds a property to describe this dependency, overwriting it in case it already exists. |
java.util.List<Dependent> |
getPath()
|
java.util.Map<java.lang.Object,java.lang.Object> |
getProperties()
|
java.lang.Object |
getTarget()
|
java.util.Collection<Dependency> |
search(java.lang.Object subTarget)
Searches a sub-dependency within this object's target. |
void |
validateCircularDependency()
Checks that a dependency held by an object on itself is valid. |
Method Detail |
---|
java.lang.Object getTarget()
java.util.List<Dependent> getPath()
null
if this is a direct dependency.void addProperty(java.lang.Object key, java.lang.Object value)
key
- value
- java.util.Map<java.lang.Object,java.lang.Object> getProperties()
java.util.Collection<Dependency> search(java.lang.Object subTarget)
subTarget
- the searched object.
null
if none found.void validateCircularDependency() throws CircularDependencyException
CircularDependencyException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |