13-bean创建流程4-反射创建bean

文章目录

  • 1.AbstractAutowireCapableBeanFactory#determineConstructorsFromBeanPostProcessors
    • 1.1 ConstructorResolver
  • 2. 实例化策略
  • 3. BeanWrapper包装类
  • 4. AbstractAutowireCapableBeanFactory#doCreateBean
    • 4.1 CommonAnnotationBeanPostProcessor
    • 4.2 AutowiredAnnotationBeanPostProcessor

1.AbstractAutowireCapableBeanFactory#determineConstructorsFromBeanPostProcessors

SmartInstantiationAwareBeanPostProcessor接口定制构造函数

/**
 * Determine candidate constructors to use for the given bean, checking all registered
 * {@link SmartInstantiationAwareBeanPostProcessor SmartInstantiationAwareBeanPostProcessors}.
 * @param beanClass the raw class of the bean
 * @param beanName the name of the bean
 * @ret

你可能感兴趣的:(#,spring源码学习笔记,spring)