Hi,
I've uploaded a patch to the Spring JIRA which adds support for
constructor injection using constructor parameter names. Here's the
link: http://opensource.atlassian.com/projects/spring/browse/SPR-2539
With this patch the following will be possible:
<bean id="connectionPool" class="ConnectionPoolImpl">
<constructor-arg name="host" value="gbg5"/>
<constructor-arg name="port" value="3066"/>
<constructor-arg name="username" value="bob"/>
<constructor-arg name="password" value="Ns7Ysh"/>
</bean>
There are some limitations which I mention in the issue description.
Please let me know what you think about it.
Thanks!
--
Niklas Therning
|