public class OngoingAnnotationExtraction
extends java.lang.Object
getAnnotation(Class)| Modifier and Type | Method and Description |
|---|---|
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> annotationClass)
Tries to find the given annotation for the bean in question.
|
public <T extends java.lang.annotation.Annotation> java.util.Optional<T> getAnnotation(java.lang.Class<T> annotationClass)
T - the type of the annotation to be searchedannotationClass - the type of the annotation to be foundAnnotationUtils.findAnnotation(Class, Class),
AnnotationUtils.findAnnotation(Method, Class)