Interface ClassFilePostProcessor

All Known Implementing Classes:
ClassFilePostProcessor.ForClassFileTransformer, ClassFilePostProcessor.NoOp

public interface ClassFilePostProcessor
A post processor for class files.
  • Method Details

    • transform

      byte[] transform(@MaybeNull ClassLoader classLoader, String name, @MaybeNull ProtectionDomain protectionDomain, byte[] binaryRepresentation)
      Transforms a class file for a given class.
      Parameters:
      classLoader - The class loader which is used to load a class or null if loaded by the bootstrap loader.
      name - The binary name of the transformed class.
      protectionDomain - The protection domain of the transformed class or null if no protection domain is provided.
      binaryRepresentation - The binary representation of the class file.
      Returns:
      The class file to use.