org.codehaus.aspectwerkz.hook.impl
Class ClassPreProcessorHelper
java.lang.Object
org.codehaus.aspectwerkz.hook.impl.ClassPreProcessorHelper
- public class ClassPreProcessorHelper
- extends java.lang.Object
Helper class called by the modified java.lang.ClassLoader.
This class is called at different points by the modified java.lang.ClassLoader
of the org.codehaus.aspectwerkz.hook.impl.ClassLoaderPreProcessorImpl implemention.
This class must reside in the -Xbootclasspath when AspectWerkz layer 1 is used, but the effective
implementation of the class preprocessor (AspectWerkz layer 2) can be in standard system classpath (-cp).
- Author:
- Alexandre Vasseur
Method Summary |
static byte[] |
defineClass0Pre(java.lang.ClassLoader caller,
java.lang.String name,
byte[] b,
int off,
int len,
java.security.ProtectionDomain pd)
byte code instrumentation of class loaded |
static void |
initializePreProcessor()
Initialization of the ClassPreProcessor
The ClassPreProcessor implementation is lazy loaded. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassPreProcessorHelper
public ClassPreProcessorHelper()
initializePreProcessor
public static void initializePreProcessor()
- Initialization of the ClassPreProcessor
The ClassPreProcessor implementation is lazy loaded. This allow to put it
in the regular classpath whereas the instrumentation layer (layer 1) is in
the bootclasspath
defineClass0Pre
public static byte[] defineClass0Pre(java.lang.ClassLoader caller,
java.lang.String name,
byte[] b,
int off,
int len,
java.security.ProtectionDomain pd)
- byte code instrumentation of class loaded
Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.