Class 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.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 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 be null or 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 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