public abstract class DependencyEnumerator extends Object
Modifier | Constructor and Description |
---|---|
protected |
DependencyEnumerator()
Initializes a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T extends ICloneWithContext & IFreezable & IEquatableDefinition & IEnumerateDependencies> |
enumerate(T dependency)
Called by the object for each of its dependencies.
|
void |
enumerateAnyObject(Object dependency)
Called by the object for each of its dependencies.
|
void |
enumerateAnyObjectCollection(Iterable dependencies)
Calls
#enumerate(T) for each of the objects in an enumerable list. |
<T extends ICloneWithContext & IFreezable & IEquatableDefinition & IEnumerateDependencies> |
enumerateCollection(Iterable<T> dependencies)
Calls
#enumerate(T) for each of the DefinitionalObject objects
in an enumerable list. |
protected abstract void |
enumerateDefinitionalObject(Object dependency)
Called by the object for each of its dependencies that are
DefinitionalObject types. |
protected abstract void |
enumerateNonDefinitionalObject(Object dependency)
Called by the object for each of its dependencies.
|
protected DependencyEnumerator()
protected abstract void enumerateDefinitionalObject(Object dependency)
DefinitionalObject
types.dependency
- The DefinitionalObject
being enumerated.protected abstract void enumerateNonDefinitionalObject(Object dependency)
dependency
- The dependency being enumerated.public final <T extends ICloneWithContext & IFreezable & IEquatableDefinition & IEnumerateDependencies> void enumerate(T dependency)
T
- The type of the dependency being enumerated.dependency
- The dependency being enumerated.public final void enumerateAnyObject(Object dependency)
dependency
- The dependency being enumerated.public final <T extends ICloneWithContext & IFreezable & IEquatableDefinition & IEnumerateDependencies> void enumerateCollection(Iterable<T> dependencies)
#enumerate(T)
for each of the DefinitionalObject
objects
in an enumerable list. This is convenient when an object's dependencies are already in a list.T
- The type of the dependencies being enumerated.dependencies
- An enumerable list of dependencies.public final void enumerateAnyObjectCollection(Iterable dependencies)
#enumerate(T)
for each of the objects in an enumerable list.
This is convenient when an object's dependencies are already in a list.dependencies
- An enumerable list of dependencies.