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 the java.lang.ClassLoader pre processor. <p/>ProcessStarter calls once the no-arg constructor of the
11: * class implementing this interface and specified with the <code>-Daspectwerkz.classloader.clpreprocessor</code>
12: * option. It uses org.codehaus.aspectwerkz.hook.impl.ClassLoaderPreProcessorImpl by default, which is a ASM
13: * implementation (since 2004 10 20).
14: *
15: * @author <a href="mailto:alex@gnilux.com">Alexandre Vasseur </a>
16: * @see org.codehaus.aspectwerkz.hook.ProcessStarter
17: * @see org.codehaus.aspectwerkz.hook.impl.ClassLoaderPreProcessorImpl
18: */
19: public interface ClassLoaderPreProcessor {
20: /**
21: * instruments the java.lang.ClassLoader bytecode
22: */
23: public byte[] preProcess(byte[] b);
24: }
|