org.apache.maven.archiva.dependency.graph.tasks
Class DependencyManagementApplier
java.lang.Object
org.apache.maven.archiva.dependency.graph.walk.BaseVisitor
org.apache.maven.archiva.dependency.graph.tasks.DependencyManagementApplier
- All Implemented Interfaces:
- DependencyGraphVisitor
public class DependencyManagementApplier
- extends BaseVisitor
- implements DependencyGraphVisitor
Takes a stack of DependencyManagement objects and applies them to the node in question.
This merely sets the version / scope / and exclusions on the nodes, as defined by DependencyManagement.
| Fields inherited from class org.apache.maven.archiva.dependency.graph.walk.BaseVisitor |
graph |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DependencyManagementApplier
public DependencyManagementApplier()
discoverGraph
public void discoverGraph(DependencyGraph graph)
- Description copied from interface:
DependencyGraphVisitor
- Called once, for when the graph itself is discovered.
- Specified by:
discoverGraph in interface DependencyGraphVisitor- Overrides:
discoverGraph in class BaseVisitor
- Parameters:
graph - the graph that was discovered.
discoverNode
public void discoverNode(DependencyGraphNode node)
- Description copied from interface:
DependencyGraphVisitor
- Called for each node, when that node is visited.
- Specified by:
discoverNode in interface DependencyGraphVisitor- Overrides:
discoverNode in class BaseVisitor
- Parameters:
node - the node that is being visited.
finishNode
public void finishNode(DependencyGraphNode node)
- Description copied from interface:
DependencyGraphVisitor
- Called for each node, when the node has been fully visited.
- Specified by:
finishNode in interface DependencyGraphVisitor- Overrides:
finishNode in class BaseVisitor
- Parameters:
node - the node that was finished being visited.
finishGraph
public void finishGraph(DependencyGraph graph)
- Description copied from interface:
DependencyGraphVisitor
- Called once, for when the graph is finished being visited.
- Specified by:
finishGraph in interface DependencyGraphVisitor- Overrides:
finishGraph in class BaseVisitor
- Parameters:
graph - the graph that finished being visited.
getBuilder
public DependencyGraphBuilder getBuilder()
setBuilder
public void setBuilder(DependencyGraphBuilder builder)
hasCreatedNodes
public boolean hasCreatedNodes()