Package panamagl.utils
Class ClassloaderUtils
java.lang.Object
panamagl.utils.ClassloaderUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindClasses(File directory, String packageName) Recursive method used to find all classes in a given directory and subdirs.findFactoryClasses(String packge, Class<?> implem, Class<?> exclude) static Class<?>[]getClasses(String packageName)
-
Constructor Details
-
ClassloaderUtils
public ClassloaderUtils()
-
-
Method Details
-
findFactoryClasses
public static List<Class<?>> findFactoryClasses(String packge, Class<?> implem, Class<?> exclude) throws ClassNotFoundException, IOException - Throws:
ClassNotFoundExceptionIOException
-
getClasses
- Throws:
ClassNotFoundExceptionIOException
-
findClasses
public static List<Class<?>> findClasses(File directory, String packageName) throws ClassNotFoundException Recursive method used to find all classes in a given directory and subdirs.- Parameters:
directory- The base directorypackageName- The package name for classes found inside the base directory- Returns:
- The classes
- Throws:
ClassNotFoundException
-