public class DelegatingJarClassLoader extends ClassLoader
URLs 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, setPackageAssertionStatuspublic DelegatingJarClassLoader(ClassLoader parent)
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic void registerURL(URL url)
url - url to add to classpath