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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypeWriter.Default.ClassDumpAction.Dispatcher
TypeWriter.Default.ClassDumpAction.Dispatcher.Disabled, TypeWriter.Default.ClassDumpAction.Dispatcher.Enabled -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation) Dumps a class file to the file system.
-
Field Details
-
folder
The folder to write class files to. -
timestamp
private final long timestampThe timestamp to append.
-
-
Constructor Details
-
Enabled
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
Dumps a class file to the file system.- Specified by:
dumpin interfaceTypeWriter.Default.ClassDumpAction.Dispatcher- Parameters:
instrumentedType- The type to dump.original-trueif the class file is in its original state.binaryRepresentation- The class file's binary representation.
-