类的使用
org.springframework.core.annotation.AnnotationAttributes
使用AnnotationAttributes的程序包 程序包 说明 org.springframework.beans.factory.annotation Support package for annotation-driven bean configuration.org.springframework.cache.annotation Annotations and supporting classes for declarative cache management.org.springframework.core.annotation Core support package for annotations, meta-annotations, and merged annotations with attribute overrides.org.springframework.core.type.classreading Support classes for reading annotation and class-level metadata.org.springframework.scheduling.annotation Java 5 annotation for asynchronous method execution.org.springframework.test.context This package contains the Spring TestContext Framework which provides annotation-driven unit and integration testing support that is agnostic of the actual testing framework in use.org.springframework.test.util General utility classes for use in unit and integration tests.org.springframework.transaction.annotation Spring's support for annotation-based transaction demarcation.org.springframework.beans.factory.annotation中AnnotationAttributes的使用
参数类型为AnnotationAttributes的org.springframework.beans.factory.annotation中的方法 修饰符和类型 方法 说明 protected boolean
AutowiredAnnotationBeanPostProcessor. determineRequiredStatus(AnnotationAttributes ann)
已过时。since 5.2, in favor ofAutowiredAnnotationBeanPostProcessor.determineRequiredStatus(MergedAnnotation)
protected Object
QualifierAnnotationAutowireCandidateResolver. extractValue(AnnotationAttributes attr)
Extract the value attribute from the given annotation.org.springframework.cache.annotation中AnnotationAttributes的使用
声明为AnnotationAttributes的org.springframework.cache.annotation中的字段 修饰符和类型 字段 说明 protected AnnotationAttributes
AbstractCachingConfiguration. enableCaching
org.springframework.core.annotation中AnnotationAttributes的使用
返回AnnotationAttributes的org.springframework.core.annotation中的方法 修饰符和类型 方法 说明 AnnotationAttributes
MergedAnnotation. asAnnotationAttributes(MergedAnnotation.Adapt... adaptations)
Create a new mutableAnnotationAttributes
instance from this merged annotation.static AnnotationAttributes
AnnotatedElementUtils. findMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType, boolean classValuesAsString, boolean nestedAnnotationsAsMap)
Find the first annotation of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributes
AnnotatedElementUtils. findMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap)
Find the first annotation of the specifiedannotationName
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributes
AnnotationAttributes. fromMap(Map<String,Object> map)
Return anAnnotationAttributes
instance based on the given map.AnnotationAttributes
AnnotationAttributes. getAnnotation(String attributeName)
Get theAnnotationAttributes
stored under the specifiedattributeName
.AnnotationAttributes[]
AnnotationAttributes. getAnnotationArray(String attributeName)
Get the array ofAnnotationAttributes
stored under the specifiedattributeName
.static AnnotationAttributes
AnnotationUtils. getAnnotationAttributes(Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap)
Retrieve the given annotation's attributes as anAnnotationAttributes
map.static AnnotationAttributes
AnnotationUtils. getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation)
Retrieve the given annotation's attributes as anAnnotationAttributes
map.static AnnotationAttributes
AnnotationUtils. getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap)
Retrieve the given annotation's attributes as anAnnotationAttributes
map.static AnnotationAttributes
AnnotatedElementUtils. getMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType)
Get the first annotation of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributes
AnnotatedElementUtils. getMergedAnnotationAttributes(AnnotatedElement element, String annotationName)
Get the first annotation of the specifiedannotationName
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributes
AnnotatedElementUtils. getMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap)
Get the first annotation of the specifiedannotationName
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.参数类型为AnnotationAttributes的org.springframework.core.annotation中的方法 修饰符和类型 方法 说明 static void
AnnotationUtils. postProcessAnnotationAttributes(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString)
Post-process the suppliedAnnotationAttributes
, preserving nested annotations asAnnotation
instances.static void
AnnotationUtils. registerDefaultValues(AnnotationAttributes attributes)
Register the annotation-declared default values for the given attributes, if available.参数类型为AnnotationAttributes的org.springframework.core.annotation中的构造器 构造器 说明 AnnotationAttributes(AnnotationAttributes other)
Create a newAnnotationAttributes
instance, wrapping the provided map and all its key-value pairs.org.springframework.core.type.classreading中AnnotationAttributes的使用
类型参数类型为AnnotationAttributes的org.springframework.core.type.classreading中的字段 修饰符和类型 字段 说明 protected LinkedMultiValueMap<String,AnnotationAttributes>
AnnotationMetadataReadingVisitor. attributesMap
已过时。Declared as aLinkedMultiValueMap
instead of aMultiValueMap
to ensure that the hierarchical ordering of the entries is preserved.protected LinkedMultiValueMap<String,AnnotationAttributes>
MethodMetadataReadingVisitor. attributesMap
已过时。返回AnnotationAttributes的org.springframework.core.type.classreading中的方法 修饰符和类型 方法 说明 AnnotationAttributes
AnnotationMetadataReadingVisitor. getAnnotationAttributes(String annotationName, boolean classValuesAsString)
已过时。AnnotationAttributes
MethodMetadataReadingVisitor. getAnnotationAttributes(String annotationName, boolean classValuesAsString)
已过时。org.springframework.scheduling.annotation中AnnotationAttributes的使用
声明为AnnotationAttributes的org.springframework.scheduling.annotation中的字段 修饰符和类型 字段 说明 protected AnnotationAttributes
AbstractAsyncConfiguration. enableAsync
org.springframework.test.context中AnnotationAttributes的使用
参数类型为AnnotationAttributes的org.springframework.test.context中的构造器 构造器 说明 ContextConfigurationAttributes(Class<?> declaringClass, AnnotationAttributes annAttrs)
Construct a newContextConfigurationAttributes
instance for the suppliedAnnotationAttributes
(parsed from a@ContextConfiguration
annotation) and the test class that declared them.org.springframework.test.util中AnnotationAttributes的使用
返回AnnotationAttributes的org.springframework.test.util中的方法 修饰符和类型 方法 说明 AnnotationAttributes
MetaAnnotationUtils.AnnotationDescriptor. getAnnotationAttributes()
org.springframework.transaction.annotation中AnnotationAttributes的使用
声明为AnnotationAttributes的org.springframework.transaction.annotation中的字段 修饰符和类型 字段 说明 protected AnnotationAttributes
AbstractTransactionManagementConfiguration. enableTx
参数类型为AnnotationAttributes的org.springframework.transaction.annotation中的方法 修饰符和类型 方法 说明 protected TransactionAttribute
JtaTransactionAnnotationParser. parseTransactionAnnotation(AnnotationAttributes attributes)
protected TransactionAttribute
SpringTransactionAnnotationParser. parseTransactionAnnotation(AnnotationAttributes attributes)