org.aspectj.weaver.loadtime
Class ClassPreProcessorAgentAdapter
java.lang.Object
org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter
- All Implemented Interfaces:
- java.lang.instrument.ClassFileTransformer
public class ClassPreProcessorAgentAdapter
- extends java.lang.Object
- implements java.lang.instrument.ClassFileTransformer
Java 1.5 adapter for class pre processor
- Author:
- Alexandre Vasseur
|
Method Summary |
byte[] |
transform(java.lang.ClassLoader loader,
java.lang.String className,
java.lang.Class<?> classBeingRedefined,
java.security.ProtectionDomain protectionDomain,
byte[] bytes)
Weaving delegation |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPreProcessorAgentAdapter
public ClassPreProcessorAgentAdapter()
transform
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
- Weaving delegation
- Specified by:
transform in interface java.lang.instrument.ClassFileTransformer
- Parameters:
loader - the defining class loaderclassName - the name of class beeing loadedclassBeingRedefined - when hotswap is calledprotectionDomain - bytes - the bytecode before weaving
- Returns:
- the weaved bytecode
- Throws:
java.lang.instrument.IllegalClassFormatException