Package org.jboss.shrinkwrap.api
Class ClassLoaderSearchUtil
java.lang.Object
org.jboss.shrinkwrap.api.ClassLoaderSearchUtil
Utilities to search a series of
ClassLoaders for a Class by name.
Not to be granted visibility outside of this package, unless scoped out to internals (this is not part of the public
user API)-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Class<?> findClassFromClassLoaders(String className, Iterable<ClassLoader> classLoaders) Finds aClassby name using a series ofClassLoaders as the search path
-
Field Details
-
log
Logger
-
-
Constructor Details
-
ClassLoaderSearchUtil
private ClassLoaderSearchUtil()No instances, keep private
-
-
Method Details
-
findClassFromClassLoaders
static Class<?> findClassFromClassLoaders(String className, Iterable<ClassLoader> classLoaders) throws ClassNotFoundException, IllegalArgumentException Finds aClassby name using a series ofClassLoaders as the search path- Parameters:
className-classLoaders-- Returns:
- Throws:
ClassNotFoundException- If theClasscould not be found in any of the specified CLsIllegalArgumentException
-