Collection and sharing of, interview questions and answers asked in various interviews, faqs and articles.....
What are the common implementations of the ApplicationContext?
The three commonly used implementation of 'Application Context' are:
FileSystemXmlApplicationContext: This container loads the definitions of the beans from
an XML file. Here you need to provide the full path of the XML bean configuration file to the
constructor.
ClassPathXmlApplicationContext: This container loads the definitions of the beans from
an XML file. Here you do not need to provide the full path of the XML file but you need to set
CLASSPATH properly because this container will look bean configuration XML file in
CLASSPATH.
WebXmlApplicationContext: This container loads the XML file with definitions of all beans
from within a web application
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment