接口的使用
org.springframework.core.annotation.AnnotationFilter
使用AnnotationFilter的程序包 程序包 说明 org.springframework.core.annotation Core support package for annotations, meta-annotations, and merged annotations with attribute overrides.org.springframework.core.annotation中AnnotationFilter的使用
声明为AnnotationFilter的org.springframework.core.annotation中的字段 修饰符和类型 字段 说明 static AnnotationFilter
AnnotationFilter. ALL
AnnotationFilter
that always matches and can be used when no relevant annotation types are expected to be present at all.static AnnotationFilter
AnnotationFilter. JAVA
static AnnotationFilter
AnnotationFilter. NONE
已过时。as of 5.2.6 since theMergedAnnotations
model always ignores lang annotations according to thePLAIN
filter (for efficiency reasons)static AnnotationFilter
AnnotationFilter. PLAIN
AnnotationFilter
that matches annotations in thejava.lang
andorg.springframework.lang
packages and their subpackages.返回AnnotationFilter的org.springframework.core.annotation中的方法 修饰符和类型 方法 说明 static AnnotationFilter
AnnotationFilter. packages(String... packages)
Create a newAnnotationFilter
that matches annotations in the specified packages.参数类型为AnnotationFilter的org.springframework.core.annotation中的方法 修饰符和类型 方法 说明 static MergedAnnotations
MergedAnnotations. from(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter)
Create a newMergedAnnotations
instance from the specified annotations.static MergedAnnotations
MergedAnnotations. from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter)
Create a newMergedAnnotations
instance containing all annotations and meta-annotations from the specified element and, depending on theMergedAnnotations.SearchStrategy
, related inherited elements.