类 MergedAnnotationSelectors
java.lang.Object
cn.taketoday.core.annotation.MergedAnnotationSelectors
MergedAnnotationSelector implementations that provide various options
for MergedAnnotation instances.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static <A extends Annotation>
MergedAnnotationSelector<A>Select the first directly declared annotation when possible.static <A extends Annotation>
MergedAnnotationSelector<A>nearest()Select the nearest annotation, i.e. the one with the lowest distance.
-
构造器详细资料
-
MergedAnnotationSelectors
public MergedAnnotationSelectors()
-
-
方法详细资料
-
nearest
Select the nearest annotation, i.e. the one with the lowest distance.- 返回:
- a selector that picks the annotation with the lowest distance
-
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
-