Package org.infinispan.commons.util
Class AggregatedClassLoader
java.lang.Object
java.lang.ClassLoader
org.infinispan.commons.util.AggregatedClassLoader
A ClassLoader that delegates loading of classes and resources to a list of delegate ClassLoaders. The loading is
attempted in the order returned by the provided
Collection
.- Since:
- 9.2
- Author:
- anistor@redhat.com
-
Constructor Summary
ConstructorDescriptionAggregatedClassLoader
(Collection<ClassLoader> classLoaders) Create an aggregated ClassLoader from a Collection of ClassLoaders -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<?>
protected URL
findResource
(String name) getResources
(String name) Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
AggregatedClassLoader
Create an aggregated ClassLoader from a Collection of ClassLoaders- Parameters:
classLoaders
- a non-empty Collection of ClassLoaders
-
-
Method Details
-
getResources
- Overrides:
getResources
in classClassLoader
- Throws:
IOException
-
findResource
- Overrides:
findResource
in classClassLoader
-
findClass
- Overrides:
findClass
in classClassLoader
- Throws:
ClassNotFoundException
-