Return to www.inductionframework.org

com.acciente.commons.loader
Class ByteCodeClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by com.acciente.commons.loader.ByteCodeClassLoader

public class ByteCodeClassLoader
extends java.security.SecureClassLoader

A classloader to load a class using the byte code data


Constructor Summary
ByteCodeClassLoader()
          Creates a class loader with no parent class loader, this is expected to cause the system class loader to be used as the parent class loader
ByteCodeClassLoader(java.lang.ClassLoader oParentClassLoader)
          Creates a class loader that delegates to the specified parent class loader
 
Method Summary
 void addClassDef(java.lang.String sClassName, byte[] ayClassByteCode)
          Add a class defined by its byte code to this loader.
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteCodeClassLoader

public ByteCodeClassLoader()
Creates a class loader with no parent class loader, this is expected to cause the system class loader to be used as the parent class loader


ByteCodeClassLoader

public ByteCodeClassLoader(java.lang.ClassLoader oParentClassLoader)
Creates a class loader that delegates to the specified parent class loader

Parameters:
oParentClassLoader - the parent class loader
Method Detail

addClassDef

public void addClassDef(java.lang.String sClassName,
                        byte[] ayClassByteCode)
Add a class defined by its byte code to this loader.

Parameters:
sClassName - the class name
ayClassByteCode - the byte code buffer

Return to www.inductionframework.org

Copyright (c) 2008 Acciente, LLC. All rights reserved.