class MapAnnotationAttributeExtractor extends AbstractAliasAwareAnnotationAttributeExtractor<Map<String,Object>>
AnnotationAttributeExtractor strategy that
is backed by a Map.Annotation,
AliasFor,
AbstractAliasAwareAnnotationAttributeExtractor,
DefaultAnnotationAttributeExtractor,
AnnotationUtils.synthesizeAnnotation(Map, Class, AnnotatedElement)| 构造器和说明 |
|---|
MapAnnotationAttributeExtractor(Map<String,Object> attributes,
Class<? extends Annotation> annotationType,
AnnotatedElement annotatedElement)
Construct a new
MapAnnotationAttributeExtractor. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
getRawAttributeValue(Method attributeMethod)
Get the raw, unmodified attribute value from the underlying
source that corresponds to the supplied
attribute method.
|
protected Object |
getRawAttributeValue(String attributeName)
Get the raw, unmodified attribute value from the underlying
source that corresponds to the supplied
attribute name.
|
getAnnotatedElement, getAnnotationType, getAttributeValue, getSourceMapAnnotationAttributeExtractor(Map<String,Object> attributes, Class<? extends Annotation> annotationType, AnnotatedElement annotatedElement)
MapAnnotationAttributeExtractor.
The supplied map must contain a key-value pair for every attribute
defined in the supplied annotationType that is not aliased or
does not have a default value.
attributes - the map of annotation attributes; never nullannotationType - the type of annotation to synthesize; never nullannotatedElement - the element that is annotated with the annotation
of the supplied type; may be null if unknownprotected Object getRawAttributeValue(Method attributeMethod)
Copyright © 2020. All rights reserved.