com.opensymphony.webwork
Class Main.MainClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
com.opensymphony.webwork.Main.MainClassLoader
- Enclosing class:
- Main
public static class Main.MainClassLoader
- extends URLClassLoader
Reverses the typical order of classloading to defer only to the parent if the current class loader can't be
found. This is required to allow for the launcher to be embedded within webwork.jar (otherwise the dependencies
wouldn't be found by the system ClassLoader when invoking using "java -jar webwork.jar ...").
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 |
Main.MainClassLoader
public Main.MainClassLoader(URL[] urls)
loadClass
public Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
- Overrides:
loadClass
in class ClassLoader
- Throws:
ClassNotFoundException