インターフェースの使用
org.springframework.core.annotation.AnnotationFilter
AnnotationFilter を使用するパッケージ
パッケージ
説明
アノテーション、メタアノテーション、属性オーバーライドを含むマージされたアノテーションのコアサポートパッケージ。
org.springframework.core.annotation 内の AnnotationFilter 使用
AnnotationFilter として宣言されている org.springframework.core.annotation のフィールド修飾子と型フィールド説明static final AnnotationFilterAnnotationFilter.ALLAnnotationFilterは常に一致し、関連するアノテーション型がまったく存在しないことが予想される場合に使用できます。static final AnnotationFilterAnnotationFilter.JAVAstatic final AnnotationFilterAnnotationFilter.NONE使用すべきではありません。static final AnnotationFilterAnnotationFilter.PLAIN型 AnnotationFilter のパラメーターを持つ org.springframework.core.annotation のメソッド修飾子と型メソッド説明static MergedAnnotationsMergedAnnotations.from(ObjectSE source, AnnotationSE[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) 指定されたアノテーションから新しいMergedAnnotationsインスタンスを作成します。static MergedAnnotationsMergedAnnotations.from(AnnotatedElementSE element, MergedAnnotations.SearchStrategy searchStrategy, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) 指定された要素からのすべてのアノテーションとメタアノテーション、およびMergedAnnotations.SearchStrategyに応じて、関連する継承された要素を含む新しいMergedAnnotationsインスタンスを作成します。MergedAnnotations.Search.withAnnotationFilter(AnnotationFilter annotationFilter) 使用するAnnotationFilterを構成します。
MergedAnnotationsモデルは効率上の理由から、AnnotationFilter.PLAINフィルターに従って常に言語アノテーションを無視するため