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.
 

Method Detail

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 class
loader - the class loader that has loaded the class
Returns:
the bytecode
Throws:
java.lang.Exception - upon failure