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 |
|---|---|
protected void |
customizeContext(javax.servlet.ServletContext sc,
org.springframework.web.context.ConfigurableWebApplicationContext wac)
Allows loading/override of custom bean definitions from sakai.home
The pattern is the 'servlet_name-context.xml'
|
protected org.springframework.context.ApplicationContext |
loadParentContext(javax.servlet.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, determineContextClass, determineContextInitializerClasses, getCurrentWebApplicationContext, initWebApplicationContext, setContextInitializerspublic static final String SPRING_CONTEXT_SUFFIX
protected void customizeContext(javax.servlet.ServletContext sc,
org.springframework.web.context.ConfigurableWebApplicationContext wac)
The pattern is the 'servlet_name-context.xml'
customizeContext in class org.springframework.web.context.ContextLoadersc - current servlet contextwac - the new WebApplicationContextprotected org.springframework.context.ApplicationContext loadParentContext(javax.servlet.ServletContext servletContext)
throws org.springframework.beans.BeansException
loadParentContext in class org.springframework.web.context.ContextLoaderservletContext - (not used)org.springframework.beans.BeansExceptionCopyright © 2003–2019 The Sakai Foundation. All rights reserved.