to.etc.domui.server.reloader
Class ReloadingClassLoader

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.ReloadingClassLoader

public class ReloadingClassLoader
extends java.net.URLClassLoader

The classloader used by the reloader. Classes matching the include pattern are loaded using this classloader, and all of the files thus accessed are registered with the Reloader. When the Reloader determines that registered sources have changed it will discard the current instance of this classloader, thereby invalidating all classes, and discard all sessions.

Author:
Frits Jalvingh Created on May 22, 2008

Constructor Summary
ReloadingClassLoader(java.lang.ClassLoader parent, Reloader r)
           
 
Method Summary
 java.lang.Class<?> loadClass(java.lang.String name, boolean resolve)
          Main workhorse for loading.
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Constructor Detail

ReloadingClassLoader

public ReloadingClassLoader(java.lang.ClassLoader parent,
                            Reloader r)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

loadClass

public java.lang.Class<?> loadClass(java.lang.String name,
                                    boolean resolve)
                             throws java.lang.ClassNotFoundException
Main workhorse for loading.

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