public abstract class AbstractArtifactVisitor extends Object implements DependencyNodeVisitor
| Modifier and Type | Field and Description |
|---|---|
protected Set<ArtifactCoordinates> |
collectedDependencies
The visitor collected dependencies.
|
protected DependenciesFilter |
dependenciesFilter
A filter for the direct dependencies of the visited node.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractArtifactVisitor() |
|
AbstractArtifactVisitor(String classifier,
String scope,
Supplier<DependencyNodeVisitor> childVisitor) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
collectDependencies(ProjectDependencyNode node) |
Set<ArtifactCoordinates> |
getCollectedDependencies()
Retrieves the dependencies collected while visiting the dependency graph
|
void |
setChildVisitor(Supplier<DependencyNodeVisitor> childVisitor) |
void |
visit(ProjectDependencyNode node)
Visits a node, processing its direct dependencies (that are of the type defined by the classifier in the constructor) and
visiting its children.
|
protected void |
visitChildren(ProjectDependencyNode node)
Visits each the current node's children with the visitor that was supplied in the constructor
|
protected Set<ArtifactCoordinates> collectedDependencies
protected DependenciesFilter dependenciesFilter
public AbstractArtifactVisitor(String classifier, String scope, Supplier<DependencyNodeVisitor> childVisitor)
protected AbstractArtifactVisitor()
public void visit(ProjectDependencyNode node) throws ValidationException
visit in interface DependencyNodeVisitornode - The node being visitedValidationExceptionpublic abstract void collectDependencies(ProjectDependencyNode node)
protected void visitChildren(ProjectDependencyNode node) throws ValidationException
ValidationExceptionpublic Set<ArtifactCoordinates> getCollectedDependencies()
DependencyNodeVisitorgetCollectedDependencies in interface DependencyNodeVisitorpublic void setChildVisitor(Supplier<DependencyNodeVisitor> childVisitor)
Copyright © 2024 MuleSoft Inc. All rights reserved.