-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
Support target instantiation and binding via constructor in DataBinder #26721
Comments
This provides more flexibility to pass a targetType even if a MethodParameter is not available. See gh-26721
Technically a refactoring of existing functionality in the classes referenced in the description, but integrated into the |
Currently, both MVC's
ModelAttributeMethodProcessor
and WebFlux'sModelAttributeMethodArgumentResolver
share similar (though not identical) code for instantiating beans from request parameters:ModelAttributeMethodProcessor::constructAttribute
ModelAttributeMethodArgumentResolver::constructAttribute
We should try to refactor this code into something usable from both MVC and WebFlux, and which can also be used from WebMvc.fn and WebFlux.fn in the future.
The text was updated successfully, but these errors were encountered: