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 import java.util.Hashtable; 11 12 /*** 13 * Implement to be a class PreProcessor in the AspectWerkz univeral loading architecture. <p/>A single instance of the 14 * class implementing this interface is build during the java.lang.ClassLoader initialization or just before the first 15 * class loads, bootclasspath excepted. Thus there is a single instance the of ClassPreProcessor per JVM. <br/>Use the 16 * <code>-Daspectwerkz.classloader.preprocessor</code> option to specify which class preprocessor to use. 17 * 18 * @author <a href="mailto:alex@gnilux.com">Alexandre Vasseur </a> 19 * @see org.codehaus.aspectwerkz.hook.ProcessStarter 20 */ 21 public interface ClassPreProcessor { 22 public abstract void initialize(Hashtable hashtable); 23 24 public abstract byte[] preProcess(String klass, byte[] abyte, ClassLoader caller); 25 }