public interface MetaProvider
Modifier and Type | Field and Description |
---|---|
static MetaProvider |
DEFAULT
Default metadata provider.
|
Modifier and Type | Method and Description |
---|---|
<A extends Annotation> |
getAnnotation(Class<A> a,
Class<?> c)
Finds the specified annotation on the specified class.
|
<A extends Annotation> |
getAnnotation(Class<A> a,
Constructor<?> c)
Finds the specified annotation on the specified constructor.
|
<A extends Annotation> |
getAnnotation(Class<A> a,
Field f)
Finds the specified annotation on the specified field.
|
<A extends Annotation> |
getAnnotation(Class<A> a,
Method m)
Finds the specified annotation on the specified method.
|
<A extends Annotation> |
getDeclaredAnnotation(Class<A> a,
Class<?> c)
Finds the specified declared annotation on the specified class.
|
static final MetaProvider DEFAULT
<A extends Annotation> A getAnnotation(Class<A> a, Class<?> c)
A
- The annotation type to find.a
- The annotation type to find.c
- The class to search on.<A extends Annotation> A getDeclaredAnnotation(Class<A> a, Class<?> c)
A
- The annotation type to find.a
- The annotation type to find.c
- The class to search on.<A extends Annotation> A getAnnotation(Class<A> a, Method m)
A
- The annotation type to find.a
- The annotation type to find.m
- The method to search on.<A extends Annotation> A getAnnotation(Class<A> a, Field f)
A
- The annotation type to find.a
- The annotation type to find.f
- The field to search on.<A extends Annotation> A getAnnotation(Class<A> a, Constructor<?> c)
A
- The annotation type to find.a
- The annotation type to find.c
- The constructor to search on.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.