public class ContextLoader
extends org.springframework.web.context.ContextLoader
Sakai's extension to Spring's ContextLoader - adds the location of the ComponentManager shared AC, linking the local AC to it as parent, and loading localy hosted components into shared.
| Modifier and Type | Field and Description |
|---|---|
static String |
SHARED_LOCATION_PARAM
Name of servlet context parameter that can specify the config location for loading into the shared component set.
|
| Constructor and Description |
|---|
ContextLoader() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.context.WebApplicationContext |
initWebApplicationContext(ServletContext servletContext)
Initialize the local ApplicationContext, link it to the shared context, and load shared definitions into the shared context.
|
protected org.springframework.context.ApplicationContext |
loadParentContext(ServletContext servletContext)
Access the shared ApplicationContext
|
closeWebApplicationContext, configureAndRefreshWebApplicationContext, createWebApplicationContext, createWebApplicationContext, customizeContext, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContextpublic static final String SHARED_LOCATION_PARAM
public org.springframework.web.context.WebApplicationContext initWebApplicationContext(ServletContext servletContext) throws org.springframework.beans.BeansException
initWebApplicationContext in class org.springframework.web.context.ContextLoaderservletContext - current servlet contextorg.springframework.beans.BeansException - if the context couldn't be initializedprotected org.springframework.context.ApplicationContext loadParentContext(ServletContext servletContext) throws org.springframework.beans.BeansException
loadParentContext in class org.springframework.web.context.ContextLoaderservletContext - (not used)org.springframework.beans.BeansExceptionCopyright © 2003-2014 The Sakai Foundation. All Rights Reserved.