public class SakaiContextLoader
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 |
SPRING_CONTEXT_SUFFIX |
| Constructor and Description |
|---|
SakaiContextLoader() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.context.WebApplicationContext |
initWebApplicationContext(ServletContext servletContext)
Allows loading/override of custom bean definitions from sakai.home
The pattern is the 'servlet_name-context.xml'
|
protected org.springframework.context.ApplicationContext |
loadParentContext(ServletContext servletContext)
Spring allows a parent ApplicationContext to be set during the creation of a new ApplicationContext
Sakai sets the SakaiApplicationContext as the parent which managed by the ComponentManager
|
closeWebApplicationContext, configureAndRefreshWebApplicationContext, createWebApplicationContext, createWebApplicationContext, customizeContext, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContextpublic static final String SPRING_CONTEXT_SUFFIX
public org.springframework.web.context.WebApplicationContext initWebApplicationContext(ServletContext servletContext) throws org.springframework.beans.BeansException
The pattern is the 'servlet_name-context.xml'
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–2016 The Sakai Foundation. All rights reserved.