ApplicationContext ctx = new ClassPathXmlApplicationContext( \"com/springinaction/springidol/spring-idol.xml\"); Performer performer = (Performer) ctx.getBean(\"
According to Spring documentation,
The default behavior for ApplicationContext implementations is to eagerly pre-instantiate all singleton beans at startup.
Also, you can set them to load lazily.