public class AnnotationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Annotation> |
getAnnotatedClasses(Class<T> annotation,
String packageName)
Finds all classes within a package which are annotated with certain
annotation.
|
static Iterator<Class<?>> |
getClassesIterator(String packageName) |
public static <T extends Annotation> List<Class<?>> getAnnotatedClasses(Class<T> annotation, String packageName)
T
- Annotation classannotation
- Annotation which we are looking forpackageName
- Package in which to searchCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.