KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > bytecode > hook > ClassPreProcessor


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.object.bytecode.hook;
5
6 public interface ClassPreProcessor {
7
8   /**
9    * XXX::NOTE:: ClassLoader checks the returned byte array to see if the class is instrumented or not to maintain the
10    * offset.
11    * @param length
12    * @param offset
13    *
14    * @return new byte array if the class is instrumented and same input byte array if not.
15    * @see ClassLoaderPreProcessorImpl
16    */

17   public byte[] preProcess(String JavaDoc name, byte[] data, int offset, int length, ClassLoader JavaDoc caller);
18
19 }
20
Popular Tags