|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
winstone.classLoader.WebappClassLoader
winstone.classLoader.ReloadingClassLoader
public class ReloadingClassLoader
This subclass of WinstoneClassLoader is the reloading version. It runs a monitoring thread in the background that checks for updates to any files in the class path.
Field Summary |
---|
Fields inherited from class winstone.classLoader.WebappClassLoader |
---|
system |
Constructor Summary | |
---|---|
ReloadingClassLoader(java.net.URL[] urls,
java.lang.ClassLoader parent)
|
Method Summary | |
---|---|
protected void |
addURL(java.net.URL url)
|
void |
contextDestroyed(ServletContextEvent sce)
|
void |
contextInitialized(ServletContextEvent sce)
|
protected java.lang.Class |
findClass(java.lang.String name)
|
java.net.URL |
findResource(java.lang.String name)
|
void |
run()
The maintenance thread. |
Methods inherited from class winstone.classLoader.WebappClassLoader |
---|
getResourceAsStream, loadClass |
Methods inherited from class java.net.URLClassLoader |
---|
definePackage, 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, 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 |
---|
public ReloadingClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
Method Detail |
---|
protected void addURL(java.net.URL url)
addURL
in class java.net.URLClassLoader
public void contextInitialized(ServletContextEvent sce)
contextInitialized
in interface ServletContextListener
public void contextDestroyed(ServletContextEvent sce)
contextDestroyed
in interface ServletContextListener
public void run()
run
in interface java.lang.Runnable
protected java.lang.Class findClass(java.lang.String name) throws java.lang.ClassNotFoundException
findClass
in class java.net.URLClassLoader
java.lang.ClassNotFoundException
public java.net.URL findResource(java.lang.String name)
findResource
in class java.net.URLClassLoader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |