01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package org.codehaus.aspectwerkz.hook;
08:
09: /**
10: * Implement to be a class PreProcessor in the AspectWerkz univeral loading architecture. <p/>A single instance of the
11: * class implementing this interface is build during the java.lang.ClassLoader initialization or just before the first
12: * class loads, bootclasspath excepted. Thus there is a single instance the of ClassPreProcessor per JVM. <br/>Use the
13: * <code>-Daspectwerkz.classloader.preprocessor</code> option to specify which class preprocessor to use.
14: *
15: * @author <a href="mailto:alex@gnilux.com">Alexandre Vasseur </a>
16: * @see org.codehaus.aspectwerkz.hook.ProcessStarter
17: */
18: public interface ClassPreProcessor {
19:
20: public abstract void initialize();
21:
22: public abstract byte[] preProcess(String klass, byte[] abyte,
23: ClassLoader caller);
24: }
|