KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > loaders > BytecodeProvider


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

4 package com.tc.object.loaders;
5
6 /**
7  * To be implemented by all class loaders that can load a class that is only represented by a byte array
8  * in memory and can not be found using regular class loading. For example classes that have been generated
9  * on-the-fly.
10  */

11 public interface BytecodeProvider {
12
13   /**
14    * Returns the bytecode for a class with the name specified.
15    *
16    * @param className the name of the class who's bytecode is missing
17    * @return the bytecode for the class or NULL if bytecode is not in the repository
18    */

19   public byte[] __tc_getBytecodeForClass(String JavaDoc className);
20 }
21
Popular Tags