Class JavaDependencyContextRefiner
- java.lang.Object
-
- org.eclipse.aether.util.graph.transformer.JavaDependencyContextRefiner
-
- All Implemented Interfaces:
DependencyGraphTransformer
public final class JavaDependencyContextRefiner extends java.lang.Object implements DependencyGraphTransformer
A dependency graph transformer that refines the request context for nodes that belong to the "project" context by appending the classpath type to which the node belongs. For instance, a compile-time project dependency will be assigned the request context "project/compile".- See Also:
DependencyNode.getRequestContext()
-
-
Constructor Summary
Constructors Constructor Description JavaDependencyContextRefiner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
getClasspathScope(DependencyNode node)
DependencyNode
transformGraph(DependencyNode node, DependencyGraphTransformationContext context)
Transforms the dependency graph denoted by the specified root node.
-
-
-
Method Detail
-
transformGraph
public DependencyNode transformGraph(DependencyNode node, DependencyGraphTransformationContext context) throws RepositoryException
Description copied from interface:DependencyGraphTransformer
Transforms the dependency graph denoted by the specified root node. The transformer may directly change the provided input graph or create a new graph, the former is recommended for performance reasons.- Specified by:
transformGraph
in interfaceDependencyGraphTransformer
- Parameters:
node
- The root node of the (possibly cyclic!) graph to transform, must not benull
.context
- The graph transformation context, must not benull
.- Returns:
- The result graph of the transformation, never
null
. - Throws:
RepositoryException
- If the transformation failed.
-
getClasspathScope
private java.lang.String getClasspathScope(DependencyNode node)
-
-