O'Reilly logo
  • Deskind Deskind thinks this is interesting:

When the class is instantiated by the JVM, Spring Framework’s ClassPathXmlApplicationContext object is created in the class’s constructor. This context class reads a configuration XML file and creates any objects declared in that file—a FileReader by the name of “reader” bean in this case. The instantiation of the ApplicationContext creates the container that consists of the objects defined in that XML file. When the fetchData is invoked, the same reader bean is fetched from the container and the appropriate methods on the <...


Cover of Just Spring
  • 1. Basics
  • from Just Spring
  • by Madhusudhan Konda
  • Publisher: O'Reilly Media, Inc.
  • Released: July 2011


How the dependency injection is working