Class AnnotationInfo.AnnotationInvocationHandler

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler
    Enclosing class:
    AnnotationInfo

    private static class AnnotationInfo.AnnotationInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    InvocationHandler for dynamically instantiating an Annotation object.
    • Constructor Summary

      Constructors 
      Constructor Description
      AnnotationInvocationHandler​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass, AnnotationInfo annotationInfo)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)  
      • Methods inherited from class java.lang.Object

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

      • annotationClass

        private final java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass
        The annotation class.
      • annotationParameterValuesInstantiated

        private final java.util.Map<java.lang.String,​java.lang.Object> annotationParameterValuesInstantiated
        The annotation parameter values instantiated.
    • Constructor Detail

      • AnnotationInvocationHandler

        AnnotationInvocationHandler​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass,
                                    AnnotationInfo annotationInfo)
        Constructor.
        Parameters:
        annotationClass - the annotation class
        annotationInfo - the annotation info
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler