org.sonatype.aether.util.graph.transformer
Class JavaDependencyContextRefiner
java.lang.Object
org.sonatype.aether.util.graph.transformer.JavaDependencyContextRefiner
- All Implemented Interfaces:
- DependencyGraphTransformer
public class JavaDependencyContextRefiner
- extends 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".
- Author:
- Benjamin Bentmann
- See Also:
DependencyNode.getRequestContext()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaDependencyContextRefiner
public JavaDependencyContextRefiner()
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.
- Specified by:
transformGraph
in interface DependencyGraphTransformer
- Parameters:
node
- The root node of the (possibly cyclic!) 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.
Copyright © 2010-2012. All Rights Reserved.