Class AnnotationUtils


  • public final class AnnotationUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addAnnotationClass​(java.lang.Class<?> targetClass, java.lang.Class<? extends java.lang.annotation.Annotation> targetAnnotation, java.lang.annotation.Annotation targetValue)  
      static void addDeclarationAnnotationClass​(java.lang.Class<?> targetClass, java.lang.Class<? extends java.lang.annotation.Annotation> targetAnnotation, java.lang.annotation.Annotation targetValue)  
      static <A extends java.lang.annotation.Annotation>
      void
      processMethodAnnotedIntoInstance​(java.lang.Class<A> classAnnotation, java.lang.Object instance)  
      static <A extends java.lang.annotation.Annotation>
      void
      processMethodAnnotedIntoInstance​(java.lang.Class<A> classAnnotation, java.lang.Object instance, java.lang.Object... params)  
      • Methods inherited from class java.lang.Object

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

      • addAnnotationClass

        public static void addAnnotationClass​(java.lang.Class<?> targetClass,
                                              java.lang.Class<? extends java.lang.annotation.Annotation> targetAnnotation,
                                              java.lang.annotation.Annotation targetValue)
                                       throws java.lang.NoSuchFieldException,
                                              java.lang.NoSuchMethodException,
                                              java.lang.reflect.InvocationTargetException,
                                              java.lang.IllegalAccessException
        Throws:
        java.lang.NoSuchFieldException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • addDeclarationAnnotationClass

        public static void addDeclarationAnnotationClass​(java.lang.Class<?> targetClass,
                                                         java.lang.Class<? extends java.lang.annotation.Annotation> targetAnnotation,
                                                         java.lang.annotation.Annotation targetValue)
                                                  throws java.lang.NoSuchFieldException,
                                                         java.lang.NoSuchMethodException,
                                                         java.lang.reflect.InvocationTargetException,
                                                         java.lang.IllegalAccessException
        Throws:
        java.lang.NoSuchFieldException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • processMethodAnnotedIntoInstance

        public static <A extends java.lang.annotation.Annotation> void processMethodAnnotedIntoInstance​(java.lang.Class<A> classAnnotation,
                                                                                                        java.lang.Object instance)
      • processMethodAnnotedIntoInstance

        public static <A extends java.lang.annotation.Annotation> void processMethodAnnotedIntoInstance​(java.lang.Class<A> classAnnotation,
                                                                                                        java.lang.Object instance,
                                                                                                        java.lang.Object... params)