Package org.eclipse.aether.collection
Interface DependencyTraverser
- All Known Implementing Classes:
- AndDependencyTraverser,- FatArtifactTraverser,- StaticDependencyTraverser
public interface DependencyTraverser
Decides whether the dependencies of a dependency node should be traversed as well.
 
Note: Implementations must be stateless.
 Warning: This hook is called from a hot spot and therefore implementations should pay attention to
 performance. Among others, implementations should provide a semantic equals() method.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionDerives a dependency traverser that will be used to decide whether the transitive dependencies of the dependency given in the collection context shall be traversed.booleantraverseDependency(Dependency dependency) Decides whether the dependencies of the specified dependency should be traversed.
- 
Method Details- 
traverseDependencyDecides whether the dependencies of the specified dependency should be traversed.- Parameters:
- dependency- The dependency to check, must not be- null.
- Returns:
- trueif the dependency graph builder should recurse into the specified dependency and process its dependencies,- falseotherwise.
 
- 
deriveChildTraverserDerives a dependency traverser that will be used to decide whether the transitive dependencies of the dependency given in the collection context shall be traversed. When calculating the child traverser, implementors are strongly advised to simply return the current instance if nothing changed to help save memory.- Parameters:
- context- The dependency collection context, must not be- null.
- Returns:
- The dependency traverser for the target node or nullif dependencies should be unconditionally traversed in the sub graph.
 
 
-