zoukankan      html  css  js  c++  java
  • conversionService注入过程

    conversionService注入过程

    一、org.springframework.context.support.AbstractApplicationContext

    • refresh→finishBeanFactoryInitialization→setConversionService

    二、org.springframework.beans.factory.support.AbstractBeanFactory

    • getConversionService→initBeanWrapper→

    三、org.springframework.beans.PropertyEditorRegistrySupport

    • 成员:conversionService/defaultEditors/customEditors
    • setConversionService→

    四、org.springframework.beans.TypeConverterSupport

    • typeConverterDelegate→代理→convertIfNecessary

    五、org.springframework.beans.SimpleTypeConverter

    • 完成typeConverterDelegate成员初始化

    六、org.springframework.beans.TypeConverterDelegate

    • 数据字段:private final PropertyEditorRegistrySupport propertyEditorRegistry;
    • convertIfNecessary→进行类型转换系统会调用底层的conversionService.convert或调用doConvertValue传递PropertyEditor来实现
  • 相关阅读:
    ASP.NET 学习笔记(一)ASP.NET 概览
    JSP基础
    算法
    TestNG基础教程
    TestNG基础教程
    TestNG基础教程
    Jira
    Jira
    Jira
    Jira
  • 原文地址:https://www.cnblogs.com/windlog/p/13597033.html
Copyright © 2011-2022 走看看