Class TypeWriter.Default.ClassDumpAction.Dispatcher.Enabled

java.lang.Object
net.bytebuddy.dynamic.scaffold.TypeWriter.Default.ClassDumpAction.Dispatcher.Enabled
All Implemented Interfaces:
TypeWriter.Default.ClassDumpAction.Dispatcher
Enclosing interface:
TypeWriter.Default.ClassDumpAction.Dispatcher

@Enhance public static class TypeWriter.Default.ClassDumpAction.Dispatcher.Enabled extends Object implements TypeWriter.Default.ClassDumpAction.Dispatcher
An enabled dispatcher that dumps class files to a given folder.
  • Field Details

    • folder

      private final String folder
      The folder to write class files to.
    • timestamp

      private final long timestamp
      The timestamp to append.
  • Constructor Details

    • Enabled

      protected Enabled(String folder, long timestamp)
      Creates a new dispatcher for dumping class files.
      Parameters:
      folder - The folder to write class files to.
      timestamp - The timestamp to append.
  • Method Details

    • dump

      public void dump(TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation)
      Dumps a class file to the file system.
      Specified by:
      dump in interface TypeWriter.Default.ClassDumpAction.Dispatcher
      Parameters:
      instrumentedType - The type to dump.
      original - true if the class file is in its original state.
      binaryRepresentation - The class file's binary representation.