org.sonatype.aether.util.graph.transformer
Class ConflictMarker

java.lang.Object
  extended by org.sonatype.aether.util.graph.transformer.ConflictMarker
All Implemented Interfaces:
DependencyGraphTransformer

public class ConflictMarker
extends Object
implements DependencyGraphTransformer

A dependency graph transformer that identifies conflicting dependencies. When this transformer has executed, the transformation context holds a Map<DependencyNode, Object> where dependency nodes that belong to the same conflict group will have an equal conflict identifier. This map is stored using the key TransformationContextKeys.CONFLICT_IDS.

Author:
Benjamin Bentmann

Constructor Summary
ConflictMarker()
           
 
Method Summary
 DependencyNode transformGraph(DependencyNode node, DependencyGraphTransformationContext context)
          After the execution of this method, every DependencyNode with an attached dependency is member of one conflict group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConflictMarker

public ConflictMarker()
Method Detail

transformGraph

public DependencyNode transformGraph(DependencyNode node,
                                     DependencyGraphTransformationContext context)
                              throws RepositoryException
After the execution of this method, every DependencyNode with an attached dependency is member of one conflict group.

Specified by:
transformGraph in interface DependencyGraphTransformer
Parameters:
node - The root node of the graph to transform, must not be null.
context - The graph transformation context, must not be null.
Returns:
The result graph of the transformation, never null.
Throws:
RepositoryException - If the transformation failed.
See Also:
DependencyGraphTransformer.transformGraph(DependencyNode, DependencyGraphTransformationContext)


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.