Web Site

org.codehaus.janino
Class ResourceFinderIClassLoader

java.lang.Object
  extended byorg.codehaus.janino.IClassLoader
      extended byorg.codehaus.janino.ResourceFinderIClassLoader

public class ResourceFinderIClassLoader
extends IClassLoader

This IClassLoader loads IClasses through a a ResourceFinder that designates ClassFiles.


Field Summary
 
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
 
Constructor Summary
ResourceFinderIClassLoader(ResourceFinder resourceFinder, IClassLoader optionalParentIClassLoader)
           
 
Method Summary
protected  IClass findIClass(java.lang.String descriptor)
          Find a new IClass by descriptor; return null if a class for that descriptor could not be found.
 
Methods inherited from class org.codehaus.janino.IClassLoader
defineIClass, loadIClass, postConstruct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFinderIClassLoader

public ResourceFinderIClassLoader(ResourceFinder resourceFinder,
                                  IClassLoader optionalParentIClassLoader)
Method Detail

findIClass

protected IClass findIClass(java.lang.String descriptor)
                     throws java.lang.ClassNotFoundException
Description copied from class: IClassLoader
Find a new IClass by descriptor; return null if a class for that descriptor could not be found.

Similar ClassLoader.findClass(java.lang.String), this method must

The format of a descriptor is defined in JVMS 4.3.2. Typical descriptors are:

Notice that this method is never called for array types.

Notice that this method is never called from more than one thread at a time. In other words, implementations of this method need not be synchronized.

Specified by:
findIClass in class IClassLoader
Returns:
null if a class with that descriptor could not be found
Throws:
java.lang.ClassNotFoundException - if an exception was raised while loading the class

Web Site