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 Object
implements org.eclipse.aether.collection.DependencyGraphTransformer
A dependency graph transformer that chains other transformers.
-
Constructor Summary
ConstructorsConstructorDescriptionChainedDependencyGraphTransformer(org.eclipse.aether.collection.DependencyGraphTransformer... transformers) Creates a new transformer that chains the specified transformers. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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 Details
-
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 benull.transformer2- 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
-