public class AnnotationValuesExtractor extends ClassPathIntrospector
| Constructor and Description |
|---|
AnnotationValuesExtractor(URL... projectClassesLocations)
Prepares the class to extract annotations from the project classes
specified.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Class<? extends Annotation>,Set<String>> |
extractAnnotationValues(Map<Class<? extends Annotation>,String> annotationToValueGetterMethodName)
Extracts annotation values from the annotations.
|
doInvokeAnnotationMethod, getAnnotatedClasses, invokeAnnotationMethod, loadClassInProjectClassLoaderpublic AnnotationValuesExtractor(URL... projectClassesLocations)
projectClassesLocations - urls to project class locations (directories, jars etc.)public Map<Class<? extends Annotation>,Set<String>> extractAnnotationValues(Map<Class<? extends Annotation>,String> annotationToValueGetterMethodName)
annotationToValueGetterMethodName - annotations and method names to call to get data fromIllegalArgumentException - if annotation does not have the method specifiedIllegalStateException - if annotation cannot be loaded for specified project classes
or annotation method call threw an exceptionCopyright © 2025. All rights reserved.