public final class CombineClassLoader extends ClassLoader
ClassLoader that load classes from list of other ClassLoaders. Node that
this ClassLoader just delegates to other ClassLoaders, but never define class, hence no Class
loaded by this class would have Class.getClassLoader()} returning this ClassLoader.| Constructor and Description |
|---|
CombineClassLoader(ClassLoader parent,
Iterable<ClassLoader> delegates) |
| Modifier and Type | Method and Description |
|---|---|
protected Class<?> |
findClass(String name) |
protected URL |
findResource(String name) |
protected Enumeration<URL> |
findResources(String name) |
InputStream |
getResourceAsStream(String name) |
clearAssertionStatus, 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, setSignerspublic CombineClassLoader(ClassLoader parent, Iterable<ClassLoader> delegates)
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass in class ClassLoaderClassNotFoundExceptionprotected URL findResource(String name)
findResource in class ClassLoaderprotected Enumeration<URL> findResources(String name) throws IOException
findResources in class ClassLoaderIOExceptionpublic InputStream getResourceAsStream(String name)
getResourceAsStream in class ClassLoaderCopyright © 2019 CDAP Licensed under the Apache License, Version 2.0.