Class ChainedDependencyGraphTransformer
- java.lang.Object
-
- org.eclipse.aether.util.graph.transformer.ChainedDependencyGraphTransformer
-
- All Implemented Interfaces:
org.eclipse.aether.collection.DependencyGraphTransformer
public final class ChainedDependencyGraphTransformer extends java.lang.Object implements org.eclipse.aether.collection.DependencyGraphTransformer
A dependency graph transformer that chains other transformers.
-
-
Constructor Summary
Constructors Constructor Description ChainedDependencyGraphTransformer(org.eclipse.aether.collection.DependencyGraphTransformer... transformers)Creates a new transformer that chains the specified transformers.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.aether.collection.DependencyGraphTransformernewInstance(org.eclipse.aether.collection.DependencyGraphTransformer transformer1, org.eclipse.aether.collection.DependencyGraphTransformer transformer2)Creates a new transformer that chains the specified transformers or simply returns one of them if the other one isnull.org.eclipse.aether.graph.DependencyNodetransformGraph(org.eclipse.aether.graph.DependencyNode node, org.eclipse.aether.collection.DependencyGraphTransformationContext context)
-
-
-
Constructor Detail
-
ChainedDependencyGraphTransformer
public ChainedDependencyGraphTransformer(org.eclipse.aether.collection.DependencyGraphTransformer... transformers)
Creates a new transformer that chains the specified transformers.- Parameters:
transformers- the transformers to chain, may benullor empty
-
-
Method Detail
-
newInstance
public static org.eclipse.aether.collection.DependencyGraphTransformer newInstance(org.eclipse.aether.collection.DependencyGraphTransformer transformer1, org.eclipse.aether.collection.DependencyGraphTransformer transformer2)
Creates a new transformer that chains the specified transformers or simply returns one of them if the other one isnull.- Parameters:
transformer1- the first transformer of the chain, may benulltransformer2- the second transformer of the chain, may benull- Returns:
- the chained transformer or
nullif both input transformers arenull
-
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:
transformGraphin interfaceorg.eclipse.aether.collection.DependencyGraphTransformer- Throws:
org.eclipse.aether.RepositoryException
-
-