public final class AnnotationUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
findAnnotation(AnnotatedElement annotatedElement,
Class<A> annotationClass)
Deep search of specified annotation considering "annotation inheritance" (annotation annotated with specified annotation).
|
static <A extends Annotation> |
findAnnotation(Annotation annotation,
Class<A> annotationClass)
Deep search of specified annotation considering "annotation inheritance" (annotation annotated with specified annotation).
|
static String |
getMethodStatName(Method method)
Returns name for monitored method.
|
public static <A extends Annotation> A findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationClass)
A - the type of the annotation to query for and return if presentannotatedElement - specified annotated elementannotationClass - specified annotation classpublic static <A extends Annotation> A findAnnotation(Annotation annotation, Class<A> annotationClass)
A - annotation - annotationClass - Copyright © 2010-2017 anotheria.net. All Rights Reserved.