spring-beans源码分析

4.3.7版本-----------------一个包名写一篇,后续把包名换成链接。

org.springframework.beans
org.springframework.beans.annotation
org.springframework.beans.factory
org.springframework.beans.factory.access
org.springframework.beans.factory.access.el
org.springframework.beans.factory.annotation
org.springframework.beans.factory.config
org.springframework.beans.factory.groovy
org.springframework.beans.factory.parsing
org.springframework.beans.factory.serviceloader
org.springframework.beans.factory.support
org.springframework.beans.factory.wiring
org.springframework.beans.factory.xml
org.springframework.beans.propertyeditors
org.springframework.beans.support

一、org.springframework.beans

编辑属性注册器:封装方法注册JavaBeans。这是一个PropertyEditorRegistrar经营业务中心接口。

public interface PropertyEditorRegistry {

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

    void registerCustomEditor(Class<?> requiredType, String propertyPath, PropertyEditor propertyEditor);
PropertyEditor findCustomEditor(Class
<?> requiredType, String propertyPath); }

PropertyEditorRegistrar:注册自定义策略的接口

public interface PropertyEditorRegistrar {
    void registerCustomEditors(PropertyEditorRegistry registry);
}

下面看一下基本实现类:PropertyEditorRegistrySupport

原文地址:https://www.cnblogs.com/wangpin/p/8526963.html