Package org.jboss.shrinkwrap.api
Class ClassLoaderSearchUtil
java.lang.Object
org.jboss.shrinkwrap.api.ClassLoaderSearchUtil
Utilities to search a series of
ClassLoader
s 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 aClass
by name using a series ofClassLoader
s 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 aClass
by name using a series ofClassLoader
s as the search path- Parameters:
className
-classLoaders
-- Returns:
- Throws:
ClassNotFoundException
- If theClass
could not be found in any of the specified CLsIllegalArgumentException
-