public class MutableURLClassLoader
extends java.net.URLClassLoader
Modifier and Type | Field and Description |
---|---|
protected static Logger |
LOGGER |
Constructor and Description |
---|
MutableURLClassLoader(java.util.List<java.net.URL> urls,
java.lang.ClassLoader parent) |
Modifier and Type | Method and Description |
---|---|
void |
addUrls(java.util.List<java.net.URL> urls) |
java.net.URL |
getResource(java.lang.String name) |
java.io.InputStream |
getResourceAsStream(java.lang.String name) |
java.lang.String |
getResourcePath(java.lang.String name) |
java.util.Enumeration<java.net.URL> |
getResources(java.lang.String name) |
boolean |
needRecompile(java.lang.String name,
java.net.URL url) |
java.util.List<java.lang.String> |
path(java.util.List<java.lang.String> basepath) |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public MutableURLClassLoader(java.util.List<java.net.URL> urls, java.lang.ClassLoader parent)
public void addUrls(java.util.List<java.net.URL> urls)
public boolean needRecompile(java.lang.String name, java.net.URL url)
public java.net.URL getResource(java.lang.String name)
getResource
in class java.lang.ClassLoader
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in class java.net.URLClassLoader
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 java.lang.String getResourcePath(java.lang.String name)
public java.util.List<java.lang.String> path(java.util.List<java.lang.String> basepath)