Class CompositeClassLoader
java.lang.Object
java.lang.ClassLoader
org.mule.extension.spring.internal.util.CompositeClassLoader
Classloader implementation that, given a set of classloaders, will first search for a resource/class in the first one. If it is
not found, it will try the next and so on until the resource/class is found or all classloaders have been tried.
For getResources(String), all the classloaders will be queried to get the union of all found resources.
- Since:
- 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String name) getResourceAsStream(String name) getResources(String name) Class<?>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.toString()Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
CompositeClassLoader
-
-
Method Details
-
loadClass
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.- Overrides:
loadClassin classClassLoader- Parameters:
name- The binary name of the classresolve- If true then resolve the class- Returns:
- The resulting Class object
- Throws:
ClassNotFoundException- If the class could not be found
-
getResource
- Overrides:
getResourcein classClassLoader
-
getResourceAsStream
- Overrides:
getResourceAsStreamin classClassLoader
-
getResources
- Overrides:
getResourcesin classClassLoader- Throws:
IOException
-
getDelegates
-
toString
-