Class ClassPreProcessorAgentAdapter

java.lang.Object
org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter
All Implemented Interfaces:
ClassFileTransformer

public class ClassPreProcessorAgentAdapter extends Object implements ClassFileTransformer
Java 1.5 adapter for class pre processor
Author:
Alexandre Vasseur, Andy Clement
  • 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:
      transform in interface 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:
      IllegalClassFormatException