jxl.enclosure.loader
Class ModuleClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by jxl.enclosure.loader.ManagedClassLoader
                  extended by jxl.enclosure.loader.ModuleClassLoader

public class ModuleClassLoader
extends ManagedClassLoader

Author:
Alex Lynch (jxlynch@users.sf.net)

Constructor Summary
protected ModuleClassLoader(java.io.File jar, java.lang.ClassLoader parent, boolean testing)
           
 
Method Summary
 java.security.PermissionCollection getPermissions(java.security.CodeSource source)
          Gives permission to read the jar from which the module is loaded (needed to load resources).
 boolean isTesting()
           
 
Methods inherited from class jxl.enclosure.loader.ManagedClassLoader
isPackage, toString
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getURLs, newInstance, newInstance
 
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getPackage, 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, wait, wait, wait
 

Constructor Detail

ModuleClassLoader

protected ModuleClassLoader(java.io.File jar,
                            java.lang.ClassLoader parent,
                            boolean testing)
                     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

isTesting

public boolean isTesting()

getPermissions

public java.security.PermissionCollection getPermissions(java.security.CodeSource source)
Gives permission to read the jar from which the module is loaded (needed to load resources).

Overrides:
getPermissions in class java.net.URLClassLoader