Package net.bytebuddy.agent.builder
Class AgentBuilder.Default.ExecutingTransformer.Java9CapableVmDispatcher
- java.lang.Object
-
- net.bytebuddy.agent.builder.AgentBuilder.Default.ExecutingTransformer.Java9CapableVmDispatcher
-
- All Implemented Interfaces:
java.security.PrivilegedAction<byte[]>
- Enclosing class:
- AgentBuilder.Default.ExecutingTransformer
@Enhance(includeSyntheticFields=true) protected class AgentBuilder.Default.ExecutingTransformer.Java9CapableVmDispatcher extends java.lang.Object implements java.security.PrivilegedAction<byte[]>
A privileged action for transforming a class on a JVM that supports modules.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]binaryRepresentationThe type's binary representation.private java.lang.Class<?>classBeingRedefinedThe class being redefined ornullif no such class exists.private java.lang.ClassLoaderclassLoaderThe type's class loader ornullif the type is loaded by the bootstrap loader.private java.lang.StringinternalNameThe type's internal name ornullif no such name exists.private java.security.ProtectionDomainprotectionDomainThe type's protection domain ornullif not available.private java.lang.ObjectrawModuleThe type'sjava.lang.Module.
-
Constructor Summary
Constructors Modifier Constructor Description protectedJava9CapableVmDispatcher(java.lang.Object rawModule, java.lang.ClassLoader classLoader, java.lang.String internalName, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation)Creates a new legacy dispatcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]run()
-
-
-
Field Detail
-
rawModule
private final java.lang.Object rawModule
The type'sjava.lang.Module.
-
classLoader
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final java.lang.ClassLoader classLoader
The type's class loader ornullif the type is loaded by the bootstrap loader.
-
internalName
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final java.lang.String internalName
The type's internal name ornullif no such name exists.
-
classBeingRedefined
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final java.lang.Class<?> classBeingRedefined
The class being redefined ornullif no such class exists.
-
protectionDomain
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final java.security.ProtectionDomain protectionDomain
The type's protection domain ornullif not available.
-
binaryRepresentation
private final byte[] binaryRepresentation
The type's binary representation.
-
-
Constructor Detail
-
Java9CapableVmDispatcher
protected Java9CapableVmDispatcher(java.lang.Object rawModule, @MaybeNull java.lang.ClassLoader classLoader, @MaybeNull java.lang.String internalName, @MaybeNull java.lang.Class<?> classBeingRedefined, @MaybeNull java.security.ProtectionDomain protectionDomain, byte[] binaryRepresentation)Creates a new legacy dispatcher.- Parameters:
rawModule- The type'sjava.lang.Module.classLoader- The type's class loader ornullif the type is loaded by the bootstrap loader.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 Detail
-
run
@MaybeNull public byte[] run()
- Specified by:
runin interfacejava.security.PrivilegedAction<byte[]>
-
-