org.codehaus.aspectwerkz.hook.impl
Class ClassLoaderPreProcessorImpl

java.lang.Object
  extended byorg.codehaus.aspectwerkz.hook.impl.ClassLoaderPreProcessorImpl
All Implemented Interfaces:
ClassLoaderPreProcessor

public class ClassLoaderPreProcessorImpl
extends java.lang.Object
implements ClassLoaderPreProcessor

Instruments the java.lang.ClassLoader to plug in the Class PreProcessor mechanism using BCEL. We are using a lazy initialization of the class preprocessor to allow all class pre processor logic to be in system classpath and not in bootclasspath. This implementation should support IBM custom JRE

Author:
Alexandre Vasseur

Constructor Summary
ClassLoaderPreProcessorImpl()
           
 
Method Summary
static void main(java.lang.String[] args)
          main test
 byte[] preProcess(byte[] b)
          instruments the java.lang.ClassLoader bytecode
 byte[] preProcessCOPY(byte[] b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderPreProcessorImpl

public ClassLoaderPreProcessorImpl()
Method Detail

preProcess

public byte[] preProcess(byte[] b)
Description copied from interface: ClassLoaderPreProcessor
instruments the java.lang.ClassLoader bytecode

Specified by:
preProcess in interface ClassLoaderPreProcessor

preProcessCOPY

public byte[] preProcessCOPY(byte[] b)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
main test

Throws:
java.lang.Exception


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.