Package org.aspectj.weaver.loadtime
Class ClassPreProcessorAgentAdapter
java.lang.Object
org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter
- All Implemented Interfaces:
ClassFileTransformer
Java 1.5 adapter for class pre processor
- Author:
- Alexandre Vasseur, Andy Clement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] bytes) Invokes the weaver to modify some set of input bytes.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.instrument.ClassFileTransformer
transform
-
Constructor Details
-
ClassPreProcessorAgentAdapter
public ClassPreProcessorAgentAdapter()
-
-
Method Details
-
transform
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] bytes) throws IllegalClassFormatException Invokes the weaver to modify some set of input bytes.- Specified by:
transformin interfaceClassFileTransformer- Parameters:
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)- Returns:
- the woven bytes
- Throws:
IllegalClassFormatException
-