org.jboss.shrinkwrap.api
Class ClassLoaderSearchUtilDelegator
java.lang.Object
org.jboss.shrinkwrap.api.ClassLoaderSearchUtilDelegator
public class ClassLoaderSearchUtilDelegator
- extends Object
Widens visibility such that any package within ShrinkWrap impl-base
may access the utilities provided by
ClassLoaderSearchUtil
- Author:
- Andrew Lee Rubinger
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
findClassFromClassLoaders
public static Class<?> findClassFromClassLoaders(String className,
Iterable<ClassLoader> classLoaders)
throws ClassNotFoundException,
IllegalArgumentException
- Finds a
Class
by name using a series of ClassLoader
s as the search path
- Parameters:
className
- classLoaders
-
- Returns:
-
- Throws:
ClassNotFoundException
- If the Class
could not be found in any of the specified CLs
IllegalArgumentException
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.