Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.ExecutingTransformer.Java9CapableVmDispatcher
java.lang.Object
net.bytebuddy.agent.builder.AgentBuilder.Default.ExecutingTransformer.Java9CapableVmDispatcher
- All Implemented Interfaces:
PrivilegedAction<byte[]>
- Enclosing class:
AgentBuilder.Default.ExecutingTransformer
@Enhance(includeSyntheticFields=true)
protected class AgentBuilder.Default.ExecutingTransformer.Java9CapableVmDispatcher
extends Object
implements PrivilegedAction<byte[]>
A privileged action for transforming a class on a JVM that supports modules.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
The type's binary representation.private final Class
<?> The class being redefined ornull
if no such class exists.private final ClassLoader
The type's class loader ornull
if the type is loaded by the bootstrap loader.private final String
The type's internal name ornull
if no such name exists.private final ProtectionDomain
The type's protection domain.private final Object
The type'sjava.lang.Module
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Java9CapableVmDispatcher
(Object rawModule, ClassLoader classLoader, String internalTypeName, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] binaryRepresentation) Creates a new legacy dispatcher. -
Method Summary
-
Field Details
-
rawModule
The type'sjava.lang.Module
. -
classLoader
The type's class loader ornull
if the type is loaded by the bootstrap loader. -
internalTypeName
The type's internal name ornull
if no such name exists. -
classBeingRedefined
The class being redefined ornull
if no such class exists. -
protectionDomain
The type's protection domain. -
binaryRepresentation
private final byte[] binaryRepresentationThe type's binary representation.
-
-
Constructor Details
-
Java9CapableVmDispatcher
protected Java9CapableVmDispatcher(Object rawModule, @MaybeNull ClassLoader classLoader, @MaybeNull String internalTypeName, @MaybeNull Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] binaryRepresentation) Creates a new legacy dispatcher.- Parameters:
rawModule
- The type'sjava.lang.Module
.classLoader
- The type's class loader ornull
if the type is loaded by the bootstrap loader.internalTypeName
- The type's internal name ornull
if no such name exists.classBeingRedefined
- The class being redefined ornull
if no such class exists.protectionDomain
- The type's protection domain.binaryRepresentation
- The type's binary representation.
-
-
Method Details
-
run
- Specified by:
run
in interfacePrivilegedAction<byte[]>
-