Interface ResettableClassFileTransformer.Substitutable

All Superinterfaces:
ClassFileTransformer, ResettableClassFileTransformer
All Known Implementing Classes:
ResettableClassFileTransformer.WithDelegation.Substitutable
Enclosing interface:
ResettableClassFileTransformer

public static interface ResettableClassFileTransformer.Substitutable extends ResettableClassFileTransformer
A ResettableClassFileTransformer which allows for substitution the actual class file transformer without changes in the order of the transformer chain.
  • Method Details

    • substitute

      void substitute(ResettableClassFileTransformer classFileTransformer)
      Substitutes the current class file transformer.
      Parameters:
      classFileTransformer - The class file transformer to use.
    • unwrap

      Returns the underlying non-substitutable class file transformer.
      Returns:
      The underlying non-substitutable class file transformer.