This is a concept might be overlooked by the beginners in Spring framework. When a Bean configuration is loaded in a IoC container, all the beans are constructed by default if you don’t specifically mentioned lazy loading on a bean. So,
ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml"); //
This single line loads all your bean objects! Remember that. One exception might be prototype. I didn’t test that yet, but the container should be loading one object at first.