public class IsolatingClassLoader extends URLClassLoader
| Constructor and Description |
|---|
IsolatingClassLoader(URL[] urls,
ClassLoader parent,
List<String> isolatedClasses) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
URL |
getResource(String name) |
Enumeration<URL> |
getResources(String name) |
boolean |
isClosed() |
protected Class<?> |
loadClass(String name,
boolean resolve) |
addURL, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstancedefineClass, defineClassclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic IsolatingClassLoader(URL[] urls, ClassLoader parent, List<String> isolatedClasses)
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic URL getResource(String name)
getResource in class ClassLoaderpublic Enumeration<URL> getResources(String name) throws IOException
getResources in class ClassLoaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class URLClassLoaderIOExceptionpublic boolean isClosed()
Copyright © 2020. All rights reserved.