org.codehaus.backport175.reader.bytecode
Class DefaultBytecodeProvider

java.lang.Object
  extended by org.codehaus.backport175.reader.bytecode.DefaultBytecodeProvider
All Implemented Interfaces:
BytecodeProvider

public class DefaultBytecodeProvider
extends java.lang.Object
implements BytecodeProvider

Default implementation of the BytecodeProvider interface which reads the bytecode from disk.

Author:
Jonas Bon?r

Constructor Summary
DefaultBytecodeProvider()
           
 
Method Summary
 byte[] getBytecode(java.lang.String className, java.lang.ClassLoader loader)
          Returns the bytecode for a specific class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBytecodeProvider

public DefaultBytecodeProvider()
Method Detail

getBytecode

public byte[] getBytecode(java.lang.String className,
                          java.lang.ClassLoader loader)
                   throws java.lang.Exception
Returns the bytecode for a specific class.

Specified by:
getBytecode in interface BytecodeProvider
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