Class RepeatableAnnotationCollector.Standard

java.lang.Object
org.miaixz.bus.core.annotation.resolve.RepeatableAnnotationCollector.AbstractCollector
org.miaixz.bus.core.annotation.resolve.RepeatableAnnotationCollector.Standard
All Implemented Interfaces:
RepeatableAnnotationCollector
Enclosing interface:
RepeatableAnnotationCollector

public static class RepeatableAnnotationCollector.Standard extends RepeatableAnnotationCollector.AbstractCollector
标准实现,当注解中有且仅有一个名为value的属性时, 若该属性类型为注解数组,且该数组对应的注解类型被Repeatable注解, 则收集器将返回该属性中包括的可重复注解。
  • Method Details

    • resolveRepeatableMethod

      protected List<Method> resolveRepeatableMethod(Annotation annotation)
      解析获得注解中存放可重复注解的属性
      Specified by:
      resolveRepeatableMethod in class RepeatableAnnotationCollector.AbstractCollector
      Parameters:
      annotation - 注解
      Returns:
      属性
    • isRepeatableMethod

      protected boolean isRepeatableMethod(Method attribute)
      判断方法是否为容器注解的value方法
      Parameters:
      attribute - 注解的属性
      Returns:
      该属性是否为注解存放可重复注解的方法