org.sonatype.aether.util.graph.transformer
Class ChainedDependencyGraphTransformer
java.lang.Object
org.sonatype.aether.util.graph.transformer.ChainedDependencyGraphTransformer
- All Implemented Interfaces:
- DependencyGraphTransformer
public class ChainedDependencyGraphTransformer
- extends Object
- implements DependencyGraphTransformer
A dependency graph transformer that chains other transformers.
- Author:
- Benjamin Bentmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChainedDependencyGraphTransformer
public ChainedDependencyGraphTransformer(DependencyGraphTransformer... transformers)
- Creates a new transformer that chains the specified transformers.
- Parameters:
transformers - The transformers to chain, may be null or empty.
newInstance
public static DependencyGraphTransformer newInstance(DependencyGraphTransformer transformer1,
DependencyGraphTransformer transformer2)
- Creates a new transformer that chains the specified transformers or simply returns one of them if the other one
is
null.
- Parameters:
transformer1 - The first transformer of the chain, may be null.transformer2 - The second transformer of the chain, may be null.
- Returns:
- The chained transformer or
null if both input transformers are null.
transformGraph
public DependencyNode transformGraph(DependencyNode node,
DependencyGraphTransformationContext context)
throws RepositoryException
- Specified by:
transformGraph in interface DependencyGraphTransformer
- Throws:
RepositoryException
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.