org.aspectj.weaver.loadtime
Class ClassPreProcessorAgentAdapter

java.lang.Object
  extended by 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


Constructor Summary
ClassPreProcessorAgentAdapter()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPreProcessorAgentAdapter

public ClassPreProcessorAgentAdapter()
Method Detail

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
Invokes the weaver to modify some set of input bytes.

Specified by:
transform in interface java.lang.instrument.ClassFileTransformer
Parameters:
loader - the defining class loader
className - the name of class being loaded
classBeingRedefined - is set when hotswap is being attempted
protectionDomain - the protection domain for the class being loaded
bytes - the incoming bytes (before weaving)
Returns:
the woven bytes
Throws:
java.lang.instrument.IllegalClassFormatException