public class ClassPreProcessorAgentAdapter
extends java.lang.Object
implements java.lang.instrument.ClassFileTransformer
Constructor and Description |
---|
ClassPreProcessorAgentAdapter() |
Modifier and Type | Method and Description |
---|---|
byte[] |
transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] bytes)
Invokes the weaver to modify some set of input bytes.
|
public byte[] transform(java.lang.ClassLoader loader, java.lang.String className, java.lang.Class<?> classBeingRedefined, java.security.ProtectionDomain protectionDomain, byte[] bytes) throws java.lang.instrument.IllegalClassFormatException
transform
in interface java.lang.instrument.ClassFileTransformer
loader
- the defining class loaderclassName
- the name of class being loadedclassBeingRedefined
- is set when hotswap is being attemptedprotectionDomain
- the protection domain for the class being loadedbytes
- the incoming bytes (before weaving)java.lang.instrument.IllegalClassFormatException