Class ConflictIdSorter
- java.lang.Object
-
- org.eclipse.aether.util.graph.transformer.ConflictIdSorter
-
- All Implemented Interfaces:
org.eclipse.aether.collection.DependencyGraphTransformer
public final class ConflictIdSorter extends java.lang.Object implements org.eclipse.aether.collection.DependencyGraphTransformer
A dependency graph transformer that creates a topological sorting of the conflict ids which have been assigned to the dependency nodes. Conflict ids are sorted according to the dependency relation induced by the dependency graph. This transformer will query the keyTransformationContextKeys.CONFLICT_IDS
in the transformation context for an existing mapping of nodes to their conflicts ids. In absence of this map, the transformer will automatically invoke theConflictMarker
to calculate the conflict ids. When this transformer has executed, the transformation context holds aList<Object>
that denotes the topologically sorted conflict ids. The list will be stored using the keyTransformationContextKeys.SORTED_CONFLICT_IDS
. In addition, the transformer will store aCollection<Collection<Object>>
using the keyTransformationContextKeys.CYCLIC_CONFLICT_IDS
that describes cycles among conflict ids.
-
-
Constructor Summary
Constructors Constructor Description ConflictIdSorter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.aether.graph.DependencyNode
transformGraph(org.eclipse.aether.graph.DependencyNode node, org.eclipse.aether.collection.DependencyGraphTransformationContext context)
-
-
-
Constructor Detail
-
ConflictIdSorter
public ConflictIdSorter()
-
-
Method Detail
-
transformGraph
public org.eclipse.aether.graph.DependencyNode transformGraph(org.eclipse.aether.graph.DependencyNode node, org.eclipse.aether.collection.DependencyGraphTransformationContext context) throws org.eclipse.aether.RepositoryException
- Specified by:
transformGraph
in interfaceorg.eclipse.aether.collection.DependencyGraphTransformer
- Throws:
org.eclipse.aether.RepositoryException
-
-