grails/grails-core — pull request #245 by ianroberts (2012-08-01 12:08:15+00:00)
Title: Handle Lists and Maps of bean references in constructor arguments.

Currently, the BeanBuilder DSL allows for things like

myCustomBean(ExampleBean) {
listOfRefs = [ref('fooService'), ref('barService')]
}

and correctly converts the list to a `ManagedList`, causing Spring to resolve the references and inject the correct beans. But it doesn't do this for constructor arguments, i.e.

myCustomBean(ExampleBean, [ref('fooService'), ref('barService')])

leaves the `RuntimeBeanReference` objects in the injected list rather than resolving them. This commit applies the same `manageList/MapIfNecessary` logic to constructor args as to property values.