@Bean @ConditionalOnMissingBean public ProducerFactory getProducer(AbstractAutowireCapableBeanFactory beanFactory) { ProducerFactoryImpl producerFactory = new ProducerFactoryImpl(); producerFactory.init(beanFactory.getBean(Environment.class)); start(producerFactory); return producerFactory; }
public PluginListableBeanFactory(BeanFactory parentBeanFactory) { super(parentBeanFactory); Field f= ReflectionUtils.findField(AbstractAutowireCapableBeanFactory.class, "factoryBeanInstanceCache"); ReflectionUtils.makeAccessible(f); factoryBeanInstanceCache= (Map<String, BeanWrapper>) ReflectionUtils.getField(f, this); }