Package net.bytebuddy.dynamic.scaffold
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 net.bytebuddy.dynamic.scaffold.TypeWriter.Default.ClassDumpAction.Dispatcher
TypeWriter.Default.ClassDumpAction.Dispatcher.Disabled, TypeWriter.Default.ClassDumpAction.Dispatcher.Enabled
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation)Dumps a class file to the file system.
-
-
-
Constructor Detail
-
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 Detail
-
dump
public void dump(TypeDescription instrumentedType, boolean original, byte[] binaryRepresentation)
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.
-
-