Class ClassLoaderSearchUtil
java.lang.Object
org.jboss.shrinkwrap.api.internal.ClassLoaderSearchUtil
Utilities to search a series of
ClassLoaders for a Class by name.
This is an internal class not part of the public ShrinkWrap API.
- Author:
- Andrew Lee Rubinger
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> findClassFromClassLoaders(String className, Iterable<ClassLoader> classLoaders) Finds aClassby name using a series ofClassLoaders as the search path
-
Method Details
-
findClassFromClassLoaders
public static Class<?> findClassFromClassLoaders(String className, Iterable<ClassLoader> classLoaders) throws ClassNotFoundException, IllegalArgumentException Finds aClassby name using a series ofClassLoaders as the search path- Parameters:
className- The fully qualified name of the class to be foundclassLoaders- AnIterableofClassLoaders to be used as the search path- Returns:
- The
Classobject for the class with the specified name, found using one of the providedClassLoaders - Throws:
ClassNotFoundException- If theClasscould not be found in any of the specified CLsIllegalArgumentException
-