public class CompositeClassLoader extends ClassLoader
For getResources(String), all the classloaders will be queried to get the union of all found resources.
| Constructor and Description |
|---|
CompositeClassLoader(ClassLoader first,
ClassLoader second) |
| Modifier and Type | Method and Description |
|---|---|
List<ClassLoader> |
getDelegates() |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
Enumeration<URL> |
getResources(String name) |
Class<?> |
loadClass(String name,
boolean resolve)
Overrides the loadClass in order to support scenarios where a custom class loader is created in a plugin and these calls to
this method explicitly.
|
String |
toString() |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic CompositeClassLoader(ClassLoader first, ClassLoader second)
public Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass in class ClassLoadername - The binary name of the classresolve - If true then resolve the classClassNotFoundException - If the class could not be foundpublic URL getResource(String name)
getResource in class ClassLoaderpublic InputStream getResourceAsStream(String name)
getResourceAsStream in class ClassLoaderpublic Enumeration<URL> getResources(String name) throws IOException
getResources in class ClassLoaderIOExceptionpublic List<ClassLoader> getDelegates()
Copyright © 2025 MuleSoft, Inc.. All rights reserved.