net.janino
Class ClassLoaderIClassLoader

java.lang.Object
  |
  +--net.janino.IClassLoader
        |
        +--net.janino.ClassLoaderIClassLoader

public class ClassLoaderIClassLoader
extends IClassLoader

An IClassLoader that loads IClasses through a reflection ClassLoader.


Fields inherited from class net.janino.IClassLoader
BOOLEAN, BYTE, CHAR, CLASS, CLONEABLE, DOUBLE, ERROR, FLOAT, INT, LONG, OBJECT, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, STRING, THROWABLE, VOID
 
Constructor Summary
ClassLoaderIClassLoader()
          Equivalent to ClassLoaderIClassLoader(Thread.currentThread().getContextClassLoader())
ClassLoaderIClassLoader(java.lang.ClassLoader classLoader)
           
 
Method Summary
 IClass defineIClass(java.lang.Class clazz)
          Similar to IClassLoader.loadIClass(String), but loads the IClass by java.lang.Class rather than by descriptor.
protected  IClass findIClass(java.lang.String type)
          Find a new IClass by descriptor.
 java.lang.ClassLoader getClassLoader()
           
 
Methods inherited from class net.janino.IClassLoader
defineIClass, getLoadedIClass, loadArrayIClass, loadIClass, postConstruct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassLoaderIClassLoader

public ClassLoaderIClassLoader(java.lang.ClassLoader classLoader)

ClassLoaderIClassLoader

public ClassLoaderIClassLoader()
Equivalent to ClassLoaderIClassLoader(Thread.currentThread().getContextClassLoader())
Method Detail

getClassLoader

public java.lang.ClassLoader getClassLoader()

findIClass

protected IClass findIClass(java.lang.String type)
                     throws java.lang.ClassNotFoundException
Find a new IClass by descriptor.
Overrides:
findIClass in class IClassLoader

defineIClass

public IClass defineIClass(java.lang.Class clazz)
Similar to IClassLoader.loadIClass(String), but loads the IClass by java.lang.Class rather than by descriptor.

Ensures that there is a one-to-one mapping of IClass and java.lang.Class objects.

Parameters:
clazz -  
Returns:
The IClass object that wraps the Class object