Java org.springframework.web.context ContextLoader fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.web.context ContextLoader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.web.context ContextLoader.

The text is from its open source code.

Subclass

org.springframework.web.context.ContextLoader has subclasses.
Click this link to see all its subclasses.

Field

StringCONFIG_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.
StringCONTEXT_CLASS_PARAM
Config param for the root WebApplicationContext implementation class to use: .

Constructor

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.

Method

voidcloseWebApplicationContext(ServletContext servletContext)
Close Spring's web application context for the given servlet context.
WebApplicationContextgetCurrentWebApplicationContext()
Obtain the Spring root web application context for the current thread (i.e.
WebApplicationContextinitWebApplicationContext(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.