Class ClassLoaderSearchUtilDelegator
java.lang.Object
org.jboss.shrinkwrap.api.ClassLoaderSearchUtilDelegator
@Deprecated(since="2.0.0",
forRemoval=true)
public class ClassLoaderSearchUtilDelegator
extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Internal ShrinkWrap utility retained only for backward compatibility; scheduled for removal. Do not use.
Widens visibility such that any package within ShrinkWrap impl-base may access the utilities provided by
ClassLoaderSearchUtil- Author:
- Andrew Lee Rubinger
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> findClassFromClassLoaders(String className, Iterable<ClassLoader> classLoaders) Deprecated, for removal: This API element is subject to removal in a future version.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 Deprecated, for removal: This API element is subject to removal in a future version.Finds aClassby name using a series ofClassLoaders as the search path- Parameters:
className- The fully qualified name of the class to find.classLoaders- AnIterableofClassLoaders to be used as the search path- Returns:
- The
Classobject representing the class found - Throws:
ClassNotFoundException- If theClasscould not be found in any of the specified CLsIllegalArgumentException
-