KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > aspectwerkz > hook > ClassLoaderPreProcessor


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.aspectwerkz.hook;
5
6 /**
7  * Implement to be the java.lang.ClassLoader pre processor. <p/>ProcessStarter calls once the no-arg constructor of the
8  * class implementing this interface and specified with the <code>-Daspectwerkz.classloader.clpreprocessor</code>
9  * option. It uses com.tc.aspectwerkz.hook.impl.ClassLoaderPreProcessorImpl by default, which is a ASM
10  * implementation (since 2004 10 20).
11  *
12  * @author <a HREF="mailto:alex@gnilux.com">Alexandre Vasseur </a>
13  * @see com.tc.aspectwerkz.hook.ProcessStarter
14  * @see com.tc.aspectwerkz.hook.impl.ClassLoaderPreProcessorImpl
15  */

16 public interface ClassLoaderPreProcessor {
17   /**
18    * instruments the java.lang.ClassLoader bytecode
19    */

20   public byte[] preProcess(byte[] b);
21 }
Popular Tags