1 Star 0 Fork 156

初雪12 / Spring-Analysis

forked from huifer / Code-Analysis 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Spring-PropertyEditorRegistry.md 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
huifer 提交于 2020-11-09 21:43 . fix: 修正文件路径

Spring PropertyEditorRegistry

  • 类全路径:org.springframework.beans.PropertyEditorRegistry

  • 类图:

    PropertyEditorRegistry

方法列表

  • 首先进行接口方法的说明, 简单概述方法作用

  • 先看一下方法列表

    void registerCustomEditor(Class<?> requiredType, PropertyEditor propertyEditor);

   void registerCustomEditor(@Nullable Class<?> requiredType, @Nullable String propertyPath, PropertyEditor propertyEditor);

   PropertyEditor findCustomEditor(@Nullable Class<?> requiredType, @Nullable String propertyPath);
  • 前两个方法都是将 class 和 PropertyEditor 进行一个绑定

  • 最后一个方法用来寻找 PropertyEditor

  • propertyPath: 属性名称或者嵌套位置

接下来围绕类图来了解实现方法

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

搜索帮助

53164aa7 5694891 3bd8fe86 5694891