Class MyAnnotationUtils

java.lang.Object
org.aksw.commons.beans.model.MyAnnotationUtils

public class MyAnnotationUtils extends Object
  • 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)