public class ClassFinder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
ClassFinder |
annotatedWith(java.lang.Class annotation) |
java.util.List<java.lang.Class<?>> |
fromPackage(java.lang.String packageName)
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
|
static java.util.List<java.lang.Class<?>> |
getClasses(java.lang.String packageName)
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
|
static ClassFinder |
loadClasses() |
ClassFinder |
thatImplement(java.lang.Class<?> parentInterface) |
public static ClassFinder loadClasses()
public ClassFinder annotatedWith(java.lang.Class annotation)
public java.util.List<java.lang.Class<?>> fromPackage(java.lang.String packageName)
packageName - The base packagepublic static java.util.List<java.lang.Class<?>> getClasses(java.lang.String packageName)
packageName - The base packagepublic ClassFinder thatImplement(java.lang.Class<?> parentInterface)