public class AnnotationExtractor
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends java.lang.annotation.Annotation> |
extract(java.lang.Class<?> targetClass,
java.lang.Class<T> annotationClass)
extract annotation from target class
|
static <T extends java.lang.annotation.Annotation> |
extractAnnotationFromProxy(java.lang.Object targetProxy,
java.lang.Class<T> annotationClass)
Extracts the annotation from the target implementation of the Proxy(ies)
|
@Nullable
public static <T extends java.lang.annotation.Annotation> T extract(java.lang.Class<?> targetClass,
java.lang.Class<T> annotationClass)
T - The annotation type.targetClass - target classannotationClass - annotation class@Nullable
public static <T extends java.lang.annotation.Annotation> T extractAnnotationFromProxy(java.lang.Object targetProxy,
java.lang.Class<T> annotationClass)
T - targetProxy - The proxy classannotationClass - The annotation to extract