摘要: initializeBean protected Object initializeBean(String beanName, Object bean, @Nullable RootBeanDefinition mbd) { if (System.getSecurityManager() != nu 阅读全文
posted @ 2022-10-01 19:23 shigp1 阅读(24) 评论(0) 推荐(0)
摘要: applyPropertyValues protected void applyPropertyValues(String beanName, BeanDefinition mbd, BeanWrapper bw, PropertyValues pvs) { if (pvs.isEmpty()) { 阅读全文
posted @ 2022-10-01 16:46 shigp1 阅读(240) 评论(0) 推荐(0)
摘要: autowireByType protected void autowireByType( String beanName, AbstractBeanDefinition mbd, BeanWrapper bw, MutablePropertyValues pvs) { TypeConverter 阅读全文
posted @ 2022-10-01 15:39 shigp1 阅读(46) 评论(0) 推荐(0)
摘要: autowireByName protected void autowireByName( String beanName, AbstractBeanDefinition mbd, BeanWrapper bw, MutablePropertyValues pvs) { String[] prope 阅读全文
posted @ 2022-10-01 11:52 shigp1 阅读(75) 评论(0) 推荐(0)
摘要: 一、bean属性自动装配模式 AutowireCapableBeanFactory /** * 没有自动装配 */ int AUTOWIRE_NO = 0; /** * 按照名字自动装配 */ int AUTOWIRE_BY_NAME = 1; /** * 按照类型自动装配 */ int AUTOW 阅读全文
posted @ 2022-10-01 10:01 shigp1 阅读(95) 评论(0) 推荐(0)