public interface RepeatableMappingParser
SimpleRepeatableMappingRegistry
中即系不同规则下的容器注解与元素注解间的映射关系RepeatableByMappingParser,
StandardRepeatableMappingParser| 限定符和类型 | 字段和说明 |
|---|---|
static RepeatableByMappingParser |
REPEATABLE_BY_MAPPING_PARSER
用于处理由
RepeatableBy注解对应的元素注解与容器注解层级 |
static StandardRepeatableMappingParser |
STANDARD_REPEATABLE_MAPPING_PARSER
用于处理由
Repeatable注解对应的元素注解与容器注解层级 |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
checkContainedAttribute(Class<? extends Annotation> elementType,
Class<? extends Annotation> containerType,
Method containerAttribute)
检查
containerAttribute方法是否存在,且返回值类型为elementType |
RepeatableMapping |
parse(Class<? extends Annotation> annotationType,
RepeatableMappingRegistry registry)
解析注解类型,获得需要向注册表中注册的
RepeatableMapping |
static final RepeatableByMappingParser REPEATABLE_BY_MAPPING_PARSER
RepeatableBy注解对应的元素注解与容器注解层级static final StandardRepeatableMappingParser STANDARD_REPEATABLE_MAPPING_PARSER
Repeatable注解对应的元素注解与容器注解层级RepeatableMapping parse(Class<? extends Annotation> annotationType, RepeatableMappingRegistry registry)
RepeatableMappingannotationType - 注解类型registry - 注册表static void checkContainedAttribute(Class<? extends Annotation> elementType, Class<? extends Annotation> containerType, Method containerAttribute)
containerAttribute方法是否存在,且返回值类型为elementTypeelementType - 元素注解类型containerType - 容器注解类型containerAttribute - 容器注解中用于获取元素注解的方法Copyright © 2022. All rights reserved.