Class NoopDependencyGraphTransformer
- java.lang.Object
-
- org.eclipse.aether.util.graph.transformer.NoopDependencyGraphTransformer
-
- All Implemented Interfaces:
DependencyGraphTransformer
public final class NoopDependencyGraphTransformer extends Object implements DependencyGraphTransformer
A dependency graph transformer that does not perform any changes on its input.
-
-
Field Summary
Fields Modifier and Type Field Description static DependencyGraphTransformer
INSTANCE
A ready-made instance of this dependency graph transformer which can safely be reused throughout an entire application regardless of multi-threading.
-
Constructor Summary
Constructors Constructor Description NoopDependencyGraphTransformer()
Creates a new instance of this graph transformer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DependencyNode
transformGraph(DependencyNode node, DependencyGraphTransformationContext context)
Transforms the dependency graph denoted by the specified root node.
-
-
-
Field Detail
-
INSTANCE
public static final DependencyGraphTransformer INSTANCE
A ready-made instance of this dependency graph transformer which can safely be reused throughout an entire application regardless of multi-threading.
-
-
Constructor Detail
-
NoopDependencyGraphTransformer
public NoopDependencyGraphTransformer()
Creates a new instance of this graph transformer. Usually,INSTANCE
should be used instead.
-
-
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.
-
-