com.tc.backport175.bytecode
Class DefaultBytecodeProvider

java.lang.Object
  extended by com.tc.backport175.bytecode.DefaultBytecodeProvider
All Implemented Interfaces:
BytecodeProvider

public class DefaultBytecodeProvider
extends java.lang.Object
implements BytecodeProvider

Default implementation of the org.codehaus.backport175.reader.bytecode.spi.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.ClassNotFoundException,
                          java.io.IOException
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.ClassNotFoundException
java.io.IOException


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