public class ParentLastURLClassLoader
extends java.net.URLClassLoader
URLClassLoader
that uses a parent-last (or child first) delegation.Constructor and Description |
---|
ParentLastURLClassLoader(java.net.URL[] classpath,
java.lang.ClassLoader parent) |
ParentLastURLClassLoader(java.net.URL[] classpath,
java.lang.ClassLoader parent,
boolean byPassSystemClassLoaderForResources) |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getResource(java.lang.String name) |
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String name) |
protected java.lang.Class<?> |
loadClass(java.lang.String name,
boolean resolve) |
void |
setByPassSystemClassLoaderForResources(boolean byPassSystemClassLoaderForResources) |
java.lang.String |
toString() |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public ParentLastURLClassLoader(java.net.URL[] classpath, java.lang.ClassLoader parent)
public ParentLastURLClassLoader(java.net.URL[] classpath, java.lang.ClassLoader parent, boolean byPassSystemClassLoaderForResources)
protected java.lang.Class<?> loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
loadClass
in class java.lang.ClassLoader
java.lang.ClassNotFoundException
public java.net.URL getResource(java.lang.String name)
getResource
in class java.lang.ClassLoader
public java.util.Enumeration<java.net.URL> getResources(java.lang.String name) throws java.io.IOException
getResources
in class java.lang.ClassLoader
java.io.IOException
public void setByPassSystemClassLoaderForResources(boolean byPassSystemClassLoaderForResources)
public java.lang.String toString()
toString
in class java.lang.Object