Example usage for Java org.springframework.web.context ContextLoader fields, constructors, methods, implement or subclass
The text is from its open source code.
String | CONFIG_LOCATION_PARAM Name of servlet context parameter (i.e., ) that can specify the config location for the root context, falling back to the implementation's default otherwise. |
String | CONTEXT_CLASS_PARAM Config param for the root WebApplicationContext implementation class to use: . |
ContextLoader() Create a new ContextLoader that will create a web application context based on the "contextClass" and "contextConfigLocation" servlet context-params. | |
ContextLoader(WebApplicationContext context) Create a new ContextLoader with the given application context. |
void | closeWebApplicationContext(ServletContext servletContext) Close Spring's web application context for the given servlet context. |
WebApplicationContext | getCurrentWebApplicationContext() Obtain the Spring root web application context for the current thread (i.e. |
WebApplicationContext | initWebApplicationContext(ServletContext servletContext) Initialize Spring's web application context for the given servlet context, using the application context provided at construction time, or creating a new one according to the " #CONTEXT_CLASS_PARAM contextClass " and " #CONFIG_LOCATION_PARAM contextConfigLocation " context-params. |