Class AgentBuilder.Default.ExecutingTransformer.LegacyVmDispatcher
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Default.ExecutingTransformer.LegacyVmDispatcher
- All Implemented Interfaces:
PrivilegedAction<byte[]>
- Enclosing class:
AgentBuilder.Default.ExecutingTransformer
@Enhance(includeSyntheticFields=true)
protected class AgentBuilder.Default.ExecutingTransformer.LegacyVmDispatcher
extends Object
implements PrivilegedAction<byte[]>
A privileged action for transforming a class on a JVM prior to Java 9.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]The type's binary representation.private final Class<?> The class being redefined ornullif no such class exists.private final ClassLoaderThe type's class loader ornullif the bootstrap class loader is represented.private final StringThe type's internal name ornullif no such name exists.private final ProtectionDomainThe type's protection domain ornullif not available. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLegacyVmDispatcher(ClassLoader classLoader, String internalName, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] binaryRepresentation) Creates a new type transformation dispatcher. -
Method Summary
-
Field Details
-
classLoader
The type's class loader ornullif the bootstrap class loader is represented. -
internalName
The type's internal name ornullif no such name exists. -
classBeingRedefined
The class being redefined ornullif no such class exists. -
protectionDomain
The type's protection domain ornullif not available. -
binaryRepresentation
private final byte[] binaryRepresentationThe type's binary representation.
-
-
Constructor Details
-
LegacyVmDispatcher
protected LegacyVmDispatcher(@MaybeNull ClassLoader classLoader, @MaybeNull String internalName, @MaybeNull Class<?> classBeingRedefined, @MaybeNull ProtectionDomain protectionDomain, byte[] binaryRepresentation) Creates a new type transformation dispatcher.- Parameters:
classLoader- The type's class loader ornullif the bootstrap class loader is represented.internalName- The type's internal name ornullif no such name exists.classBeingRedefined- The class being redefined ornullif no such class exists.protectionDomain- The type's protection domain ornullif not available.binaryRepresentation- The type's binary representation.
-
-
Method Details
-
run
- Specified by:
runin interfacePrivilegedAction<byte[]>
-