Class AnnotationLoaderUtil


  • public class AnnotationLoaderUtil
    extends java.lang.Object
    Utility functionality for annotations.
    Author:
    Daniel Sagenschneider
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.Class<?> getAnnotationType​(java.lang.Object annotation)
      Obtains the type for annotation.
      static void validateAnnotations​(java.lang.String messageSuffix, java.lang.Object[] expectedAnnotations, java.lang.Object[] actualAnnotations)
      Validate have expected annotations.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • validateAnnotations

        public static void validateAnnotations​(java.lang.String messageSuffix,
                                               java.lang.Object[] expectedAnnotations,
                                               java.lang.Object[] actualAnnotations)
        Validate have expected annotations.
        Parameters:
        messageSuffix - Message suffix to assertion.
        expectedAnnotations - Expected annotation instances.
        actualAnnotations - Actual annotation instances.
      • getAnnotationType

        public static java.lang.Class<?> getAnnotationType​(java.lang.Object annotation)
        Obtains the type for annotation.
        Parameters:
        annotation - Annotation.
        Returns:
        Type of the annotation.