I have four components having their own context file , i.e. four context files. I have defined these four context files in single context file say, applicationContext.xml. I have a main program which loads applicationContext.xml.

Question: How would I know the time taken by spring to load each context file and time taken to load all.
Is there any logging mechanism OR annotation based something