1 Star 0 Fork 407

yjw-lsy / source-code-hunter

forked from doocs / source-code-hunter 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Spring-AnnotationFormatterFactory.md 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
yanglbme 提交于 2020-12-10 03:06 . docs: prettify code

Spring AnnotationFormatterFactory

  • 类全路径: org.springframework.format.AnnotationFormatterFactory

public interface AnnotationFormatterFactory<A extends Annotation> {

	/**
	 * The types of fields that may be annotated with the &lt;A&gt; annotation.
	 * 字段类型
	 */
	Set<Class<?>> getFieldTypes();

	/**
	 * Get the Printer to print the value of a field of {@code fieldType} annotated with
	 * {@code annotation}.
	 * <p>If the type T the printer accepts is not assignable to {@code fieldType}, a
	 * coercion from {@code fieldType} to T will be attempted before the Printer is invoked.
	 * 通过注解和字段类型获取输出接口
	 * @param annotation the annotation instance
	 * @param fieldType the type of field that was annotated
	 * @return the printer
	 */
	Printer<?> getPrinter(A annotation, Class<?> fieldType);

	/**
	 * Get the Parser to parse a submitted value for a field of {@code fieldType}
	 * annotated with {@code annotation}.
	 * <p>If the object the parser returns is not assignable to {@code fieldType},
	 * a coercion to {@code fieldType} will be attempted before the field is set.
	 * 通过注解和字段类型获取解析接口
	 * @param annotation the annotation instance
	 * @param fieldType the type of field that was annotated
	 * @return the parser
	 */
	Parser<?> getParser(A annotation, Class<?> fieldType);

}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yjw-lsy/source-code-hunter.git
git@gitee.com:yjw-lsy/source-code-hunter.git
yjw-lsy
source-code-hunter
source-code-hunter
main

搜索帮助

344bd9b3 5694891 D2dac590 5694891