public final class DelegateClassLoader extends ClassLoader implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Class<?> |
findClass(String name) |
protected URL |
findResource(String name) |
protected Enumeration<URL> |
findResources(String name) |
static DelegateClassLoader |
forPlugins(Stream<URL> urls,
ClassLoader appClassLoader)
Creates a new ClassLoader which provides access to all plugins given by
the collection of URLs.
|
Collection<PluginInformation> |
getInformation()
Information about all loaded plugins.
|
String |
toString() |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic static DelegateClassLoader forPlugins(Stream<URL> urls, ClassLoader appClassLoader)
urls - The URLs, each pointing to a plugin to be loaded.appClassLoader - The ClassLoader to use as parent.public final Collection<PluginInformation> getInformation()
protected final Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionprotected final URL findResource(String name)
findResource in class ClassLoaderprotected final Enumeration<URL> findResources(String name) throws IOException
findResources in class ClassLoaderIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2015. All rights reserved.