public class DelegatingJarClassLoader extends ClassLoader
URL
s that will be queried for class loading. When the requested
class cannot be found, it delegates loading to its parent classloader.Constructor and Description |
---|
DelegatingJarClassLoader(ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
Class<?> |
loadClass(String name) |
void |
registerURL(URL url)
Add a URL to the search path of the classloader.
|
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
public DelegatingJarClassLoader(ClassLoader parent)
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass
in class ClassLoader
ClassNotFoundException
public void registerURL(URL url)
url
- url to add to classpath