title: when is a spring bean instantiated
body: <pre><code>ApplicationContext ctx = new ClassPathXmlApplicationContext(
      "com/springinaction/springidol/spring-idol.xml");
  Performer performer = (Performer) ctx.getBean("duke");
  performer.perform();
  </code></pre>
  
  <p>In the above, when are the beans instantiated, when the ApplicationContext is created or when the getBean() is called?</p>