org.apache.struts2
Class Main.MainClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
org.apache.struts2.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 struts.jar (otherwise the dependencies
wouldn't be found by the system ClassLoader when invoking using "java -jar struts-core-VERSION.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
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.