I’m interested in reusing this logic for something I’m working on.
Given
<bean name="myBeanWithSetXyz" class="com.blah.Something/>
<property name="xyz" value="3"/>
is there a spring class someplace that figures out setXyz() is an int, and sets it on an instance of the bean?
Or perhaps some other utility? Yeah, I could write it myself, but I’m a fan of reuse.
DirectFieldAccessor and BeanWrapperImpl are your most likely candidates.