类 MergedAnnotationSelectors

java.lang.Object
cn.taketoday.core.annotation.MergedAnnotationSelectors

public abstract class MergedAnnotationSelectors extends Object
MergedAnnotationSelector implementations that provide various options for MergedAnnotation instances.
从以下版本开始:
4.0
作者:
Phillip Webb
另请参阅:
  • 构造器详细资料

    • MergedAnnotationSelectors

      public MergedAnnotationSelectors()
  • 方法详细资料

    • nearest

      public static <A extends Annotation> MergedAnnotationSelector<A> nearest()
      Select the nearest annotation, i.e. the one with the lowest distance.
      返回:
      a selector that picks the annotation with the lowest distance
    • firstDirectlyDeclared

      public static <A extends Annotation> MergedAnnotationSelector<A> firstDirectlyDeclared()
      Select the first directly declared annotation when possible. If no direct annotations are declared then the nearest annotation is selected.
      返回:
      a selector that picks the first directly declared annotation whenever possible