-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Passing lookup-method args to bean constructor #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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