to.etc.domui.server.reloader
Class CheckingClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by to.etc.domui.server.reloader.CheckingClassLoader

public class CheckingClassLoader
extends java.net.URLClassLoader

This ClassLoader is used to load classes that are not to be reloaded but which must cause the classes they load to pass thru the checking mechanism. Classes loaded by this class have their classloader set to this class, and every time such a class needs another class that other class passes thru the "must I reload this class" check too. Classes loaded by this loader are not discarded; the classloader exists only to force other classloads thru a check.

This classloader loads classes as follows:

Author:
Frits Jalvingh Created on Jun 17, 2008

Constructor Summary
CheckingClassLoader(java.lang.ClassLoader parent, Reloader r, java.lang.String appclass)
           
 
Method Summary
 java.lang.Class<?> loadClass(java.lang.String name, boolean resolve)
          Main workhorse for loading.
 
Methods inherited from class java.net.URLClassLoader
addURL, definePackage, findClass, findResource, findResources, getPermissions, 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, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckingClassLoader

public CheckingClassLoader(java.lang.ClassLoader parent,
                           Reloader r,
                           java.lang.String appclass)
Method Detail

loadClass

public java.lang.Class<?> loadClass(java.lang.String name,
                                    boolean resolve)
                             throws java.lang.ClassNotFoundException
Main workhorse for loading. This ONLY loads the SPECIFIED class thru this-loader; all OTHER classes go through the RELOADING classloader.

Overrides:
loadClass in class java.lang.ClassLoader
Throws:
java.lang.ClassNotFoundException
See Also:
ClassLoader.loadClass(java.lang.String)