public class UrlDelegatingCl extends URLClassLoader
| Modifier and Type | Field and Description |
|---|---|
protected ClassLoader |
parent |
protected URL[] |
urls |
| Modifier | Constructor and Description |
|---|---|
protected |
UrlDelegatingCl(URL[] urls,
ClassLoader parent) |
| Modifier and Type | Method and Description |
|---|---|
static UrlDelegatingCl |
create(Class<?>[] classOnJar,
ClassLoader parent)
Create a new instance of the runner that contains a classloader with the
sources for the classes at "classOnJar".
|
void |
run(Runnable r)
Run "r" on a classloader that contains the sources for the classes passed
on the "create" method and delegated to current ContextClassLoader.
|
String |
toString() |
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignersprotected ClassLoader parent
protected URL[] urls
protected UrlDelegatingCl(URL[] urls, ClassLoader parent)
public static UrlDelegatingCl create(Class<?>[] classOnJar, ClassLoader parent)
classOnJar - class name to find the sourceparent - the parent class loader for delegationpublic void run(Runnable r)
r - the RunnableCopyright © 2010–2017. All rights reserved.