public interface AnnotationFinder
Modifier and Type | Field and Description |
---|---|
static AnnotationFinder |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
default <A extends Annotation> |
findAnnotation(AnnotatedElement annotatedElement,
Class<A> annotationType)
The default implementation performs a simple search for a declared annotation
matching the search type.
|
static final AnnotationFinder DEFAULT
default <A extends Annotation> A findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType)
A
- Annotation type to search for.annotatedElement
- The element to search.annotationType
- The annotation type class.Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.