KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > aspectwerkz > hook > ClassLoaderPreProcessor


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

20 public interface ClassLoaderPreProcessor {
21     /**
22      * instruments the java.lang.ClassLoader bytecode
23      */

24     public byte[] preProcess(byte[] b);
25 }
Popular Tags