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

    Constructors
    Constructor
    Description
    ChainedDependencyGraphTransformer(org.eclipse.aether.collection.DependencyGraphTransformer... transformers)
    Creates a new transformer that chains the specified transformers.
  • Method Summary

    Modifier and Type
    Method
    Description
    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 is null.
    org.eclipse.aether.graph.DependencyNode
    transformGraph(org.eclipse.aether.graph.DependencyNode node, org.eclipse.aether.collection.DependencyGraphTransformationContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 be null or 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 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 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:
      transformGraph in interface org.eclipse.aether.collection.DependencyGraphTransformer
      Throws:
      org.eclipse.aether.RepositoryException