Class ClassFileLocator.ForInstrumentation.ExtractionClassFileTransformer

java.lang.Object
net.bytebuddy.dynamic.ClassFileLocator.ForInstrumentation.ExtractionClassFileTransformer
All Implemented Interfaces:
ClassFileTransformer
Enclosing class:
ClassFileLocator.ForInstrumentation

protected static class ClassFileLocator.ForInstrumentation.ExtractionClassFileTransformer extends Object implements ClassFileTransformer
A non-operational class file transformer that remembers the binary format of a given class.
  • Field Details

    • DO_NOT_TRANSFORM

      @AlwaysNull private static final byte[] DO_NOT_TRANSFORM
      An indicator that an attempted class file transformation did not alter the handed class file.
    • classLoader

      @MaybeNull private final ClassLoader classLoader
      The class loader that is expected to have loaded the looked-up a class.
    • typeName

      private final String typeName
      The name of the type to look up.
    • binaryRepresentation

      @MaybeNull private volatile byte[] binaryRepresentation
      The binary representation of the looked-up class.
  • Constructor Details

    • ExtractionClassFileTransformer

      protected ExtractionClassFileTransformer(@MaybeNull ClassLoader classLoader, String typeName)
      Creates a class file transformer for the purpose of extraction.
      Parameters:
      classLoader - The class loader that is expected to have loaded the looked-up a class.
      typeName - The name of the type to look up.
  • Method Details