com.interface21.web.context
Class ContextLoader
java.lang.Object
|
+--com.interface21.web.context.ContextLoader
- public class ContextLoader
- extends java.lang.Object
Performs the actual initialization work for the root application context.
Called by ContextLoaderListener.
Regards a "contextClass" parameter at the servlet context resp. web.xml root level,
falling back to the default context class (XmlWebApplicationContext) if not found.
- Since:
- 17.02.2003
- Author:
- Juergen Hoeller
- See Also:
ContextLoaderListener,
XmlWebApplicationContext
|
Method Summary |
static WebApplicationContext |
initContext(javax.servlet.ServletContext servletContext)
Initializes Spring's web application context for the given servlet context,
solely regarding the servlet context init parameter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTEXT_CLASS_PARAM
public static final java.lang.String CONTEXT_CLASS_PARAM
- Config param for the root WebApplicationContext implementation class to use.
DEFAULT_CONTEXT_CLASS
public static final java.lang.Class DEFAULT_CONTEXT_CLASS
ContextLoader
public ContextLoader()
initContext
public static WebApplicationContext initContext(javax.servlet.ServletContext servletContext)
throws ApplicationContextException
- Initializes Spring's web application context for the given servlet context,
solely regarding the servlet context init parameter.
- Parameters:
servletContext - current servlet context- Returns:
- the new WebApplicationContext
Rod Johnson and Spring contributors 2001-2003.