public class ClassFinder extends Object
| Modifier and Type | Field and Description |
|---|---|
static Predicate<io.github.classgraph.ClassInfo> |
ALL |
static Predicate<io.github.classgraph.ClassInfo> |
CONCRETE |
static org.slf4j.Logger |
log |
static Predicate<io.github.classgraph.ClassInfo> |
NON_IGNORED |
static Predicate<io.github.classgraph.ClassInfo> |
PUBLIC |
| Constructor and Description |
|---|
ClassFinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<AnnotatedType> |
findImplementations(AnnotatedType superType,
Predicate<io.github.classgraph.ClassInfo> filter,
String... packages)
Searches for the implementations/subtypes of the given
AnnotatedType. |
List<Class<?>> |
findImplementations(Class superType,
Predicate<io.github.classgraph.ClassInfo> filter,
String... packages)
Searches for the implementations/subtypes of the given class.
|
public static final Predicate<io.github.classgraph.ClassInfo> CONCRETE
public static final Predicate<io.github.classgraph.ClassInfo> NON_IGNORED
public static final Predicate<io.github.classgraph.ClassInfo> PUBLIC
public static final Predicate<io.github.classgraph.ClassInfo> ALL
public static final org.slf4j.Logger log
public List<AnnotatedType> findImplementations(AnnotatedType superType, Predicate<io.github.classgraph.ClassInfo> filter, String... packages)
AnnotatedType. Only the matching classes are loaded.superType - The type the implementations/subtypes of which are to be searched forpackages - The packages to limit the search toAnnotatedTypes discovered that implementation/extend superTypepublic List<Class<?>> findImplementations(Class superType, Predicate<io.github.classgraph.ClassInfo> filter, String... packages)
superType - The type the implementations/subtypes of which are to be searched forpackages - The packages to limit the search tosuperTypepublic void close()
Copyright © 2016–2018. All rights reserved.