类 SynthesizedMergedAnnotationInvocationHandler<A extends Annotation>

java.lang.Object
cn.taketoday.core.annotation.SynthesizedMergedAnnotationInvocationHandler<A>
类型参数:
A - the annotation type
所有已实现的接口:
InvocationHandler

final class SynthesizedMergedAnnotationInvocationHandler<A extends Annotation> extends Object implements InvocationHandler
InvocationHandler for an Annotation that has synthesized (i.e. wrapped in a dynamic proxy) with additional functionality such as attribute alias handling.
从以下版本开始:
4.0
作者:
Sam Brannen, Phillip Webb, Harry Yang
另请参阅:
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • invoke

      public Object invoke(Object proxy, Method method, Object[] args)
      指定者:
      invoke 在接口中 InvocationHandler
    • annotationEquals

      private boolean annotationEquals(Object proxy, Object other)
      See Annotation.equals(Object) for a definition of the required algorithm.
      参数:
      other - the other object to compare against
    • annotationHashCode

      private int annotationHashCode()
      See Annotation.hashCode() for a definition of the required algorithm.
    • computeHashCode

      private Integer computeHashCode()
    • annotationToString

      private String annotationToString()
    • toString

      private String toString(Object value)
      This method currently does not address the following issues which we may choose to address at a later point in time.
      • non-ASCII, non-visible, and non-printable characters within a character or String literal are not escaped.
      • formatting for float and double values does not take into account whether a value is not a number (NaN) or infinite.
      参数:
      value - the attribute value to format
      返回:
      the formatted string representation
    • getAttributeValue

      private Object getAttributeValue(Method method, boolean cloneArray)
    • cloneArray

      private static Object cloneArray(Object array)
      Clone the provided array, ensuring that the original component type is retained.
      参数:
      array - the array to clone
    • createProxy

      static <A extends Annotation> A createProxy(AbstractMergedAnnotation<A> annotation, Class<A> type)
    • getName

      private static String getName(Class<?> clazz)