public class ClassUtil extends Object
| Constructor and Description |
|---|
ClassUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<Class<?>> |
getClassesInPackage(String packageName)
Retrieves recursively all the classes belonging to a package.
|
static List<Class<?>> |
getClassesInPackage(String packageName,
ClassLoader classLoader)
Retrieves recursively all the classes belonging to a package.
|
public static List<Class<?>> getClassesInPackage(String packageName) throws ClassNotFoundException
packageName - ClassNotFoundException - if any error occurspublic static List<Class<?>> getClassesInPackage(String packageName, ClassLoader classLoader) throws ClassNotFoundException
packageName - classLoader - the class loader used to load the class in the given packageClassNotFoundException - if any error occursCopyright © 2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.