public class LocalURLClassLoader extends URLClassLoader implements LocalClassLoader
Constructor and Description |
---|
LocalURLClassLoader(ClassLoader parent) |
LocalURLClassLoader(URL[] urls,
ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
addURL(URL url) |
URL |
getLocalResource(String name) |
InputStream |
getLocalResourceAsStream(String name) |
Enumeration<URL> |
getLocalResources(String name) |
Class<?> |
loadLocalClass(String name,
boolean resolve) |
close, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstance
clearAssertionStatus, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadClass
public LocalURLClassLoader(ClassLoader parent)
public LocalURLClassLoader(URL[] urls, ClassLoader parent)
public void addURL(URL url)
addURL
in interface LocalClassLoader
addURL
in class URLClassLoader
public Class<?> loadLocalClass(String name, boolean resolve) throws ClassNotFoundException
loadLocalClass
in interface LocalClassLoader
ClassNotFoundException
public URL getLocalResource(String name)
getLocalResource
in interface LocalClassLoader
public Enumeration<URL> getLocalResources(String name) throws IOException
getLocalResources
in interface LocalClassLoader
IOException
public InputStream getLocalResourceAsStream(String name) throws IOException
getLocalResourceAsStream
in interface LocalClassLoader
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.