public abstract class CallbackClassFileTransformer extends Object implements ClassFileTransformer
| Constructor and Description |
|---|
CallbackClassFileTransformer() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer)
This method analyzes class and adds callback support if needed.
|
protected abstract byte[] |
transformClass(ClassLoader loader,
byte[] clazzBytes)
Actually transforms the class.
|
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform in interface ClassFileTransformerloader - ClassLoader of classclassName - class nameclassBeingRedefined - not usedprotectionDomain - not usedclassfileBuffer - basic class dataIllegalClassFormatExceptionprotected abstract byte[] transformClass(ClassLoader loader, byte[] clazzBytes) throws Exception
loader - class loader of this classclazzBytes - class bytesException - if something went wrongCopyright © 2014–2015. All rights reserved.