@Bean
@ConditionalOnMissingBean
public ProducerFactory getProducer(AbstractAutowireCapableBeanFactory beanFactory) {
ProducerFactoryImpl producerFactory = new ProducerFactoryImpl();
producerFactory.init(beanFactory.getBean(Environment.class));
start(producerFactory);
return producerFactory;
}
java类org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory的实例源码
ProducerInit.java 文件源码
项目:mq-aliyun
阅读 21
收藏 0
点赞 0
评论 0
PluginListableBeanFactory.java 文件源码
项目:puzzle
阅读 27
收藏 0
点赞 0
评论 0
public PluginListableBeanFactory(BeanFactory parentBeanFactory) {
super(parentBeanFactory);
Field f= ReflectionUtils.findField(AbstractAutowireCapableBeanFactory.class, "factoryBeanInstanceCache");
ReflectionUtils.makeAccessible(f);
factoryBeanInstanceCache= (Map<String, BeanWrapper>) ReflectionUtils.getField(f, this);
}