Package org.aksw.commons.beans.model
Class MyAnnotationUtils
java.lang.Object
org.aksw.commons.beans.model.MyAnnotationUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
AfindAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType) Poor mans findAnnotation implementation that just invokes getAnnotation on the annotated element.static <A extends Annotation>
AfindPropertyAnnotation(Class<?> clazz, PropertyDescriptor pd, Class<A> annotation)
-
Constructor Details
-
MyAnnotationUtils
public MyAnnotationUtils()
-
-
Method Details
-
findAnnotation
public static <A extends Annotation> A findAnnotation(AnnotatedElement annotatedElement, Class<A> annotationType) Poor mans findAnnotation implementation that just invokes getAnnotation on the annotated element. FIXME This implementation may be insufficient as prior code used spring-core's AnnotationUtils- Type Parameters:
A-- Parameters:
annotatedElement-annotationType-- Returns:
-
findPropertyAnnotation
public static <A extends Annotation> A findPropertyAnnotation(Class<?> clazz, PropertyDescriptor pd, Class<A> annotation)
-