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
ConstructorsConstructorDescriptionAggregatedClassLoader
(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)
-
Constructor Details
-
AggregatedClassLoader
Create an aggregated ClassLoader from a Collection of ClassLoaders- Parameters:
classLoaders
- a non-empty Collection of ClassLoaders
-
-
Method Details
-
getResources
- Throws:
IOException
-
findResource
-
findClass
- Throws:
ClassNotFoundException
-