com.tc.backport175.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.ClassNotFoundException,
                          java.io.IOException
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
java.lang.ClassNotFoundException
java.io.IOException


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.