This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
- 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!