1

I am going through all web Application study material.But i am confused with following terms

1.ApplicationContext

http://docs.spring.io/spring/docs/2.5.x/api/org/springframework/context/ApplicationContext.html

2.WebApplicationContext

http://docs.spring.io/spring/docs/2.0.x/api/org/springframework/web/context/WebApplicationContext.html

Please help me to come out of this confusion.

Oomph Fortuity
  • 5,710
  • 10
  • 44
  • 89
  • Have you read the intro sections of the javadocs you already linked? What didn't you understand from them? – nanofarad Oct 08 '13 at 10:38
  • this has been answered before: http://stackoverflow.com/questions/3652090/difference-between-applicationcontext-xml-and-spring-servlet-xml-in-spring – ikumen Oct 08 '13 at 15:30

2 Answers2

4
  • ApplicationContext is a core interface as the javadoc (the link you posted) says. This abstracts the spring container.
  • WebApplicationContext is another interface and extending ApplicationContext. This interface offers easy access to spring container from a web application which use spring.
  • XmlWebApplicationContext is an implementation of WebApplicationContext which reads the configuration from an XML file.
Santosh
  • 17,667
  • 4
  • 54
  • 79
2

XmlWebApplicationContext is a concrete implementation of an application context, powered by XML configuration.

WebApplicationContext is a simple interface detailing the contract of a web application context. The former indirectly implements the latter.

nanofarad
  • 40,330
  • 4
  • 86
  • 117