01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.loaders;
05:
06: /**
07: * To be implemented by all class loaders that can load a class that is only represented by a byte array
08: * in memory and can not be found using regular class loading. For example classes that have been generated
09: * 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 className);
20: }
|