org.codehaus.janino
Class ClassLoaderIClassLoader
java.lang.Object
org.codehaus.janino.IClassLoader
org.codehaus.janino.ClassLoaderIClassLoader
public class ClassLoaderIClassLoader
- extends IClassLoader
An IClassLoader
that loads IClass
es through a reflection
ClassLoader
.
Fields inherited from class org.codehaus.janino.IClassLoader |
BOOLEAN, BYTE, CHARACTER, CLASS, CLONEABLE, DOUBLE, ERROR, FLOAT, INTEGER, LONG, OBJECT, RUNTIME_EXCEPTION, SERIALIZABLE, SHORT, STRING, THROWABLE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassLoaderIClassLoader
public ClassLoaderIClassLoader(ClassLoader classLoader)
- Parameters:
classLoader
- The delegate that loads the classes.
ClassLoaderIClassLoader
public ClassLoaderIClassLoader()
- Equivalent to
ClassLoaderIClassLoader(Thread.currentThread().getContextClassLoader())
getClassLoader
public ClassLoader getClassLoader()
findIClass
protected IClass findIClass(String descriptor)
throws ClassNotFoundException
- Find a new
IClass
by descriptor.
- Specified by:
findIClass
in class IClassLoader
- Returns:
null
if a class with that descriptor could not be found
- Throws:
ClassNotFoundException
- if an exception was raised while loading the class