This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
When you create the Spring container with ApplicationContext context = new ClassPathXmlApplicationContext("springconfig.xml"), Spring will read in the xml and create instances of your objects and set the dependencies between those objects in that one line of code. After that line of code, all those objects are now available for you to use by getting it out of the applicationContext with a call to getBean(). All that happens at runtime.
Mark Spritzler wrote:When you create the Spring container with ApplicationContext context = new ClassPathXmlApplicationContext("springconfig.xml"), Spring will read in the xml and create instances of your objects and set the dependencies between those objects in that one line of code. After that line of code, all those objects are now available for you to use by getting it out of the applicationContext with a call to getBean(). All that happens at runtime.