Monday, February 28, 2011

What are the common implementations of the Application Context


What are the common implementations of the Application Context
The three commonly used implementation of 'Application Context' are
·   ClassPathXmlApplicationContext: It Loads context definition from an XML file located in the classpath, treating context definitions as classpath resources. The application context is loaded from the application's classpath by using the code.
ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
·   FileSystemXmlApplicationContext: It loads context definition from an XML file in the filesystem. The application context is loaded from the file system by using the code.
ApplicationContext context = new FileSystemXmlApplicationContext("bean.xml");
·   XmlWebApplicationContext: It loads context definition from an XML file contained within a web application.

6 comments:

  1. 888 Casino No Deposit Bonus Codes for New Players 2021
    888 Casino is a great option for new players, because 순천 출장샵 it 나주 출장안마 offers a 100% 성남 출장샵 match up to $600 on your first deposit, 목포 출장샵 up to 나주 출장마사지 $600 on your first

    ReplyDelete