artembilan/spring-integration — comment on commit 48993a50a44d85edc299eedf431a8bd6f63d3b63
File: spring-integration-groovy/src/main/java/org/springframework/integration/groovy/config/GroovyControlBusParser.java line 62
By garyrussell:

Hmmm... registering a bean of type BeanFactory looks dangerous to me.

For example,

@Autowired
ApplicationContext ctx;

@Autowired
BeanFactory bf; // wires in the DefaultListableBeanFactory

@Test
public void testOperationOfControlBus() { // long is > 3
Map bfs = ctx.getBeansOfType(BeanFactory.class);
// returns the FilteredBeanFactoryDecorator

It may be ok; need to run it by Mark,