public class ClassFinder extends Object
| Modifier and Type | Method and Description |
|---|---|
ClassFinder |
annotatedWith(Class annotation) |
List<Class<?>> |
fromPackage(String packageName)
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
|
static List<Class<?>> |
getClasses(String packageName)
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
|
static ClassFinder |
loadClasses() |
ClassFinder |
thatImplement(Class<?> parentInterface) |
ClassFinder |
thatMatch(Predicate<Class> condition) |
public static ClassFinder loadClasses()
public ClassFinder annotatedWith(Class annotation)
public List<Class<?>> fromPackage(String packageName)
packageName - The base packagepublic static List<Class<?>> getClasses(String packageName)
packageName - The base packagepublic ClassFinder thatImplement(Class<?> parentInterface)
public ClassFinder thatMatch(Predicate<Class> condition)
Copyright © 2023. All rights reserved.