org.codehaus.backport175.reader.bytecode.spi
Interface BytecodeProvider
- All Known Implementing Classes:
- DefaultBytecodeProvider
public interface BytecodeProvider
Callback interface that all vendors that wants to be able to control which bytecode is read when retrieving the
annotations should implement.
- Author:
- Jonas Bonér
Method Summary |
byte[] |
getBytecode(java.lang.String className,
java.lang.ClassLoader loader)
Returns the bytecode for a specific class. |
getBytecode
byte[] getBytecode(java.lang.String className,
java.lang.ClassLoader loader)
throws java.lang.Exception
- Returns the bytecode for a specific class.
- Parameters:
className
- the fully qualified name of the classloader
- the class loader that has loaded the class
- Returns:
- the bytecode
- Throws:
java.lang.Exception
- upon failure