public class LocalFirstClassLoader extends URLClassLoader
Constructor and Description |
---|
LocalFirstClassLoader(URL[] urls) |
LocalFirstClassLoader(URL[] urls,
ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
addURL(URL url) |
Class<?> |
loadClass(String name) |
protected Class<?> |
loadClass(String name,
boolean resolve)
We override the parent-first behavior established by java.lang.Classloader.
|
close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public LocalFirstClassLoader(URL[] urls)
public LocalFirstClassLoader(URL[] urls, ClassLoader parent)
public void addURL(URL url)
addURL
in class URLClassLoader
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
Copyright © 2005–2018 QOS.ch. All rights reserved.