Repository navigation
Passing lookup-method args to bean constructor - #84
nurkiewicz wants to merge 1 commit into
Conversation
<lookup-method/> should allow specifying any number of parameters. These parameters should be passed directly to the constructor of the newly created bean. Previously <lookup-method/> had to be parameterless. Now if you provide any parameters to that method, they are passes directly (1 to 1) to the bean constructor, just like if they were declared using <constructor-arg/>. The idea was originally suggested here: http://nurkiewicz.blogspot.com/2010/08/creating-prototype-spring-beans-on.html This change is based entirely on a patch provided by Karl Pietrzak. Issue: SPR-7431
|
Thanks, Tomasz. Will take a look! |
|
Unfortunately my pull request causes it makes sure that overloaded This means that My reviewed code is available at SPR-7431b branch. |
…stringdecoder Use CharsetDecoder to decode a DataBuffer into a String.
…stringdecoder Use CharsetDecoder to decode a DataBuffer into a String.
|
@nurkiewicz Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
|
@nurkiewicz sorry that this PR got overlooked. This is implemented in the meantime, and for quite a while already. |
should allow specifying any number of parameters.
These parameters should be passed directly to the constructor of the
newly created bean.
Previously had to be parameterless. Now if you provide
any parameters to that method, they are passes directly (1 to 1) to the
bean constructor, just like if they were declared using
. The idea was originally suggested here:
http://nurkiewicz.blogspot.com/2010/08/creating-prototype-spring-beans-on.html
This change is based entirely on a patch provided by Karl Pietrzak.
I submitted CLA.
Issue: SPR-7431