ApplicationContext ctx = new ClassPathXmlApplicationContext(
\"com/springinaction/springidol/spring-idol.xml\");
Performer performer = (Performer) ctx.getBean(\"
It depends what is the scope of the bean you are calling with getBean() method. If it is 'Singleton', it is pre-instantiated by the ApplicationContext.
If you are using BeanFactory as an IOC Container, then it uses lazy initialization and the beans will be instantiated only when you call the getBean() method.
This is an advantage of ApplicationContext over BeanFactory that it solves Circular Dependency problem.