In spring config xml file all dependency are instantiate for Singleton scope when application context start? <p>As I know "the instantiation of the application context create the container that consists of the objects define in that XML file.</p> <p>This XML file is then provided to the <code>ApplicationContext</code> instance, which creates a container with these beans and their object graphs along with relationship .the spring container is simply a holder if the bean instances that where create from the XML file.</p> <p>I have some confusion: is their all bean instance is create in XML file when applicationcontext create. Or it created when getbean() call? Because if all bean dependency class object is created at context level because of singleton then some of the instance not injected to dependent object reference. Then why we create extra overhead to creating all instance?</p>