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

Good point to discuss.
As you know ApplicationContext instanceof BeanFactory and we can define in our spring-context some bean of type ApplicationContext using
ClassPathXmlApplicationContext, and you know about parent-child relationship, especially with org.springframework.web.servlet.DispatcherServlet. So, they all are registered in root ApplicationContext jolly fine.

And in the other hand I've implemented inside FilteredBeanFactoryDecorator simple closure.
And also I didn't think of a more optimal solution for filtering beans as managed resource on the fly...