public class AnnotationProviderChain extends Object implements AnnotationProvider
AnnotationProvider
.Constructor and Description |
---|
AnnotationProviderChain(AnnotationProvider[] providers) |
Modifier and Type | Method and Description |
---|---|
static AnnotationProvider |
create(List<AnnotationProvider> providers)
Creates an AnnotationProvider from the list of providers.
|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Searches for the specified annotation, returning the matching annotation instance.
|
public AnnotationProviderChain(AnnotationProvider[] providers)
public static AnnotationProvider create(List<AnnotationProvider> providers)
AnnotationProviderChain
or
the sole element in the list.public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AnnotationProvider
getAnnotation
in interface AnnotationProvider
annotationClass
- used to select the annotation to return5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.