Add ability to inject fields via reflection when using xml configuration. [SPR-10897] #15525
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: bulk-closed
An outdated, unresolved issue that's closed in bulk as part of a cleaning process
Michal Jedynak opened SPR-10897 and commented
I have a class that has an interface as a collaborator with two implementations.
When I want to have two beans of this class (each with different interface) I must create setter in the class for the collaborator (otherwise org.springframework.beans.NotWritablePropertyException is thrown).
It would be nice if the container injected it via reflection.
Link to the project depicting the issue is attached.
Affects: 3.2.4
Reference URL: https://github.com/mjedynak/spring-injection-issue
The text was updated successfully, but these errors were encountered: