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