git checkout step-3-inject-bean-with-property
為bean注入屬性丰辣,這里將信息保存成PropertyValue對象奥洼,并且保存到BeanDefinition中
image.png
image.png
image.png
image.png
這里的registerBeanDefinition 在上一篇中說到 是初始化bean的入口
image.png
再調(diào)用AutowireCapableBeanFactory.applyPropertyValues 方法 循環(huán)集合并設(shè)值官卡,這樣就完成了屬性注入bean的過程