类 TypeMappedAnnotation<A extends Annotation>

java.lang.Object
cn.taketoday.core.annotation.AbstractMergedAnnotation<A>
cn.taketoday.core.annotation.TypeMappedAnnotation<A>
类型参数:
A - the annotation type
所有已实现的接口:
MergedAnnotation<A>

final class TypeMappedAnnotation<A extends Annotation> extends AbstractMergedAnnotation<A>
MergedAnnotation that adapts attributes from a root annotation by applying the mapping and mirroring rules of an AnnotationTypeMapping.

Root attribute values are extracted from a source object using a supplied BiFunction. This allows various different annotation models to be supported by the same class. For example, the attributes source might be an actual Annotation instance where methods on the annotation instance are invoked to extract values. Equally, the source could be a simple Map with values extracted using Map.get(Object).

Extracted root attribute values must be compatible with the attribute return type, namely:

Return TypeExtracted Type
ClassClass or String
Class[]Class[] or String[]
AnnotationAnnotation, Map, or Object compatible with the value extractor
Annotation[]Annotation[], Map[], or Object[] where elements are compatible with the value extractor
Other typesAn exact match or the appropriate primitive wrapper
从以下版本开始:
4.0
作者:
Phillip Webb, Juergen Hoeller, Sam Brannen
另请参阅: