摘要:
instantiateBean protected BeanWrapper instantiateBean(String beanName, RootBeanDefinition mbd) { try { Object beanInstance; if (System.getSecurityMana 阅读全文
摘要:
autowireConstructor: protected BeanWrapper autowireConstructor( String beanName, RootBeanDefinition mbd, @Nullable Constructor<?>[] ctors, @Nullable O 阅读全文
摘要:
createBeanInstance protected BeanWrapper createBeanInstance(String beanName, RootBeanDefinition mbd, @Nullable Object[] args) { // Make sure bean clas 阅读全文
摘要:
一、例子 User.java public class User { private Integer id; private String name; private Integer age; public Integer getId() { return id; } public void set 阅读全文
摘要:
一、例子 Supplier.java @FunctionalInterface public interface Supplier<T> { /** * Gets a result. * * @return a result */ T get(); } java8以后提供的接口,可以看作是生产者,返 阅读全文