Home » Spring-Framework-090522 » org.springframework » web » context » support » [javadoc | source]
org.springframework.web.context.support
abstract public class: WebApplicationContextUtils [javadoc | source]
java.lang.Object
   org.springframework.web.context.support.WebApplicationContextUtils
Convenience methods for retrieving the root org.springframework.web.context.WebApplicationContext for a given ServletContext. This is e.g. useful for accessing a Spring context from within custom web views or Struts actions.

Note that there are more convenient ways of accessing the root context for many web frameworks, either part of Spring or available as external library. This helper class is just the most generic way to access the root context.

Method from org.springframework.web.context.support.WebApplicationContextUtils Summary:
getRequiredWebApplicationContext,   getWebApplicationContext,   getWebApplicationContext,   registerWebApplicationScopes
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.web.context.support.WebApplicationContextUtils Detail:
 public static WebApplicationContext getRequiredWebApplicationContext(ServletContext sc) throws IllegalStateException 
 public static WebApplicationContext getWebApplicationContext(ServletContext sc) 
 public static WebApplicationContext getWebApplicationContext(ServletContext sc,
    String attrName) 
    Find a custom WebApplicationContext for this web application.
 public static  void registerWebApplicationScopes(ConfigurableListableBeanFactory beanFactory) 
    Register web-specific scopes with the given BeanFactory, as used by the WebApplicationContext.