Package net.bytebuddy.dynamic.loading
Class ByteArrayClassLoader.ClassDefinitionAction
java.lang.Object
net.bytebuddy.dynamic.loading.ByteArrayClassLoader.ClassDefinitionAction
- All Implemented Interfaces:
PrivilegedAction<Class<?>>
- Enclosing class:
ByteArrayClassLoader
@Enhance(includeSyntheticFields=true)
protected class ByteArrayClassLoader.ClassDefinitionAction
extends Object
implements PrivilegedAction<Class<?>>
An action for defining a located class that is not yet loaded.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
The binary representation of the class to be loaded.private final String
The binary name of the class to define. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ClassDefinitionAction
(String name, byte[] binaryRepresentation) Creates a new class definition action. -
Method Summary
-
Field Details
-
name
The binary name of the class to define. -
binaryRepresentation
private final byte[] binaryRepresentationThe binary representation of the class to be loaded.
-
-
Constructor Details
-
ClassDefinitionAction
Creates a new class definition action.- Parameters:
name
- The binary name of the class to define.binaryRepresentation
- The binary representation of the class to be loaded.
-
-
Method Details
-
run
- Specified by:
run
in interfacePrivilegedAction<Class<?>>
-