jxl.enclosure.loader
Class DynClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by jxl.enclosure.loader.DynClassLoader

public class DynClassLoader
extends java.lang.ClassLoader

The DynClassLoader is responsible for dynamically loading classes at run time. If a class cannot be found in the loaded modules, this class first check if any new modules have been installed since enclosure was launcher. If the class cannot be found in a new module (provided there are any) then this class attempts to find it using ModuleServer. If the class is not by the ModuleServer then a ClassNotFoundException is thrown.

Author:
Alex Lynch

Method Summary
protected  java.lang.Class findClass(java.lang.String name)
           
 java.lang.Class findClass(java.lang.String[] names)
           
static DynClassLoader getInstance()
           
 java.lang.Package getPackage(java.lang.String name)
           
 boolean isPackage(java.lang.String name)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DynClassLoader getInstance()

isPackage

public boolean isPackage(java.lang.String name)

getPackage

public java.lang.Package getPackage(java.lang.String name)
Overrides:
getPackage in class java.lang.ClassLoader

findClass

protected java.lang.Class findClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
Overrides:
findClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException

findClass

public java.lang.Class findClass(java.lang.String[] names)
                          throws java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException