How Will You Implement ApplicationContext in Spring Framework ?

ApplicationContext in Spring can be implemented in one of the following three ways...

FileSystemXmlApplicationContext : If we want to load the definitions of beans from an XML file then FileSystemXmlApplicationContext is used. The full path of XML bean configuration file is provided to the constructor.

ClassPathXmlApplicationContext : To loads the definitions of beans from an XML file in the CLASSPATH, we use ClassPathXmlApplicationContext. It is used for application context embedded in jars.

WebXmlApplicationContext : To provide configuration for a web application WebXmlApplicationContext is used. While the application is running, it is read only. But it can be reloaded if underlying application supports it.



You May Interest

What is the Difference Between DOM and SAX Parser in Java ?

Can We Use Thread.sleep Method For Real-time Processing in Java ?

What are the Java Collection Classes That Implement List Interfac ...

What is the Different Type of Tag Library Groups in JSTL ?

How Can We Prevent Busy Waiting in Java ?