public class ClassPathUtils extends Object
| Constructor and Description |
|---|
ClassPathUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
findClasses(String directory,
String packageName)
Recursive method used to find all classes in a given directory and
subdirs.
|
static Collection<Class<?>> |
getClasses(String packageName)
Scans all classes accessible from the context class loader which belong
to the given package and subpackages.
|
static String[] |
getClassPathElements()
Get the array of class path elements.
|
public static Set<String> findClasses(String directory, String packageName) throws IOException
directory - The base directorypackageName - The package name for classes found inside the base directoryIOExceptionClassNotFoundExceptionpublic static Collection<Class<?>> getClasses(String packageName)
packageName - The base package or class nameClassNotFoundExceptionIOExceptionpublic static String[] getClassPathElements()
Copyright © 2013-2014 XENEI.com. All Rights Reserved.