Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
- for xml Ioc, just think of how the setter method (or the constructor) of the bean that gets the injection is called...yes the answer is obviously by using Java reflection (for setter, get name of property from xml -> prepend a "set" and switch the first letter to uppercase -> by using reflection, call a method that has that name passing property value);
- for annotation IoC (@Autowired etc) well if you know how annotation processing works then you know it can't be done but by using reflection!