Class ClassLoaderUtility
java.lang.Object
com.tenio.common.bootstrap.utility.ClassLoaderUtility
This utility class helps you retrieve all classes from a java package.
-
Method Summary
Modifier and TypeMethodDescriptiongetClasses
(String packages) Attempts to list all the classes in the specified package as determined by the context class loader.
-
Method Details
-
getClasses
Attempts to list all the classes in the specified package as determined by the context class loader.- Parameters:
packages
- the package name to search- Returns:
- a list of classes that exist within that package
- Throws:
ClassNotFoundException
- if something went wrong
-