Class WebApplicationContextUtils

java.lang.Object
org.springframework.web.context.support.WebApplicationContextUtils

public abstract class WebApplicationContextUtils extends Object
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: