Java 类org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory 实例源码

项目:mq-aliyun    文件:ProducerInit.java   
@Bean
@ConditionalOnMissingBean
public ProducerFactory getProducer(AbstractAutowireCapableBeanFactory beanFactory) {
    ProducerFactoryImpl producerFactory = new ProducerFactoryImpl();
    producerFactory.init(beanFactory.getBean(Environment.class));
    start(producerFactory);
    return producerFactory;
}
项目:puzzle    文件:PluginListableBeanFactory.java   
public PluginListableBeanFactory(BeanFactory parentBeanFactory) {
    super(parentBeanFactory);
    Field f= ReflectionUtils.findField(AbstractAutowireCapableBeanFactory.class, "factoryBeanInstanceCache");
    ReflectionUtils.makeAccessible(f);
    factoryBeanInstanceCache= (Map<String, BeanWrapper>) ReflectionUtils.getField(f, this);
}