WebApplicationContextUtils()
Convenience methods for retrieving the root WebApplicationContext for a given ServletContext. This is useful for programmatically accessing a Spring application context from within custom web views or MVC actions.
Note that there are more convenient ways of accessing the root context for many web frameworks, either part of Spring or available as an external library. This helper class is just the most generic way to access the root context.
Author
Juergen Hoeller
See Also
org.springframework.web.context.ContextLoaderorg.springframework.web.servlet.FrameworkServletorg.springframework.web.servlet.DispatcherServletorg.springframework.web.jsf.FacesContextUtilsorg.springframework.web.jsf.el.SpringBeanFacesELResolver