1 Star 0 Fork 157

南风不竞 / Spring-Analysis

forked from huifer / Code-Analysis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Spring-FormatterRegistry.md 848 Bytes
一键复制 编辑 原始数据 按行查看 历史
huifer 提交于 2020-11-09 16:53 . :fire:core/ convert + attributeAccessor

Spring FormatterRegistry

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

  • 完整代码

public interface FormatterRegistry extends ConverterRegistry {

	/**
	 * 添加输出接口
	 */
	void addPrinter(Printer<?> printer);

	/**
	 * 添加解析接口
	 */
	void addParser(Parser<?> parser);

	/**
	 * 添加格式化接口
	 */
	void addFormatter(Formatter<?> formatter);

	/**
	 * 添加类型对应的格式化接口
	 */
	void addFormatterForFieldType(Class<?> fieldType, Formatter<?> formatter);

	/**
	 * 添加类型对应的输出接口和解析接口
	 */
	void addFormatterForFieldType(Class<?> fieldType, Printer<?> printer, Parser<?> parser);

	/**
	 * 添加注解格式化工厂
	 */
	void addFormatterForFieldAnnotation(AnnotationFormatterFactory<? extends Annotation> annotationFormatterFactory);

}
Java
1
https://gitee.com/limengcanyu/spring-analysis.git
git@gitee.com:limengcanyu/spring-analysis.git
limengcanyu
spring-analysis
Spring-Analysis
master

搜索帮助