org.springframework.web.context
Interface WebApplicationContext

All Known Subinterfaces:
ConfigurableWebApplicationContext

public interface WebApplicationContext
extends ApplicationContext, ThemeSource

Interface to provide configuration for a web application. This is read-only while the application is running, but may be reloaded if the implementation supports this.

This interface adds ServletContext methods to the generic ApplicationContext interface, and defines a well-known application attribute name that the root context must be bound to in the bootstrap process.

Like generic application contexts, web application contexts are hierarchical. There is a single root context per application, while each servlet in the application (including a dispatcher servlet in the MVC framework) has its own child context.

Author:
Rod Johnson
Version: $Revision: 1.8 $
Since: January 19, 2001

Field Summary
 final static StringROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE
          Context attribute to bind root WebApplicationContext to on successful startup.

Method Summary
 ServletContextgetServletContext()
          Return the standard Servlet API ServletContext for this application.

Methods inherited from interface org.springframework.context.ApplicationContext
getDisplayName, getParent, getResource, getStartupDate, publishEvent

Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
getParentBeanFactory

Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, isSingleton

Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getBeansOfType

Methods inherited from interface org.springframework.context.MessageSource
getMessage, getMessage, getMessage

Methods inherited from interface org.springframework.ui.context.ThemeSource
getTheme

Field Detail

ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE

public final static String ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE
Context attribute to bind root WebApplicationContext to on successful startup.
Method Detail

getServletContext

public ServletContext getServletContext()
Return the standard Servlet API ServletContext for this application.

Association Links

to Class java.lang.String

Context attribute to bind root WebApplicationContext to on successful startup.