Class ChainedDependencyGraphTransformer

    • Constructor Detail

      • ChainedDependencyGraphTransformer

        public ChainedDependencyGraphTransformer​(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 DependencyGraphTransformer newInstance​(DependencyGraphTransformer transformer1,
                                                             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.