|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.web.context.ContextLoader
ch.elca.el4j.web.context.ModuleContextLoader
public class ModuleContextLoader
This class extends Spring's ContextLoader
. It inherits its
complete behaviour but replaces the web application context with a
ModuleWebApplicationContext
which can be
configured with inclusive configuration locations, exclusive configuration
locations, and booleans indicating whether bean overriding is allowed and
whether the resources retrieved by the configuration files section of the
manifest files should be merged with resources found by searching in the file
system.
ContextLoader
,
ModuleContextLoaderListener
Field Summary | |
---|---|
static String |
BEAN_OVERRIDING_PARAM
Name of servlet context parameter indicating whether bean definition overriding is allowed in the application context. |
static String |
EXCLUSIVE_LOCATIONS_PARAM
Name of servlet context parameter that can specify the exclusive configuration locations for the application context. |
static String |
INCLUSIVE_LOCATIONS_PARAM
Name of servlet context parameter that can specify the inclusive configuration locations for the application context. |
static String |
MERGE_RESOURCES_PARAM
Name of servlet context parameter indicating whether the resources retrieved by the configuration files section of the manifest files should be merged with resources found by searching in the file system. |
Fields inherited from class org.springframework.web.context.ContextLoader |
---|
CONFIG_LOCATION_PARAM, CONTEXT_CLASS_PARAM, LOCATOR_FACTORY_KEY_PARAM, LOCATOR_FACTORY_SELECTOR_PARAM |
Constructor Summary | |
---|---|
ModuleContextLoader()
|
Method Summary | |
---|---|
protected WebApplicationContext |
createWebApplicationContext(javax.servlet.ServletContext servletContext,
ApplicationContext parent)
|
protected Class<?> |
determineContextClass(javax.servlet.ServletContext servletContext)
|
protected String[] |
getExclusiveConfigLocations(javax.servlet.ServletContext servletContext)
Returns the exclusive configuration locations. |
protected String[] |
getInclusiveConfigLocations(javax.servlet.ServletContext servletContext)
Returns the inclusive configuration locations. |
protected boolean |
isBeanDefinitionOverridingAllowed(javax.servlet.ServletContext servletContext)
Returns whether bean definition overriding is allowed. |
protected boolean |
isMergingWithOuterResourcesAllowed(javax.servlet.ServletContext servletContext)
Returns whether the resources retrieved by the configuration files section of the manifest files should be merged ith resources found by searching in the file system. |
Methods inherited from class org.springframework.web.context.ContextLoader |
---|
closeWebApplicationContext, customizeContext, getCurrentWebApplicationContext, initWebApplicationContext, loadParentContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String INCLUSIVE_LOCATIONS_PARAM
public static final String EXCLUSIVE_LOCATIONS_PARAM
public static final String BEAN_OVERRIDING_PARAM
public static final String MERGE_RESOURCES_PARAM
Constructor Detail |
---|
public ModuleContextLoader()
Method Detail |
---|
protected WebApplicationContext createWebApplicationContext(javax.servlet.ServletContext servletContext, ApplicationContext parent) throws BeansException
createWebApplicationContext
in class ContextLoader
BeansException
protected Class<?> determineContextClass(javax.servlet.ServletContext servletContext) throws ApplicationContextException
determineContextClass
in class ContextLoader
ApplicationContextException
protected String[] getInclusiveConfigLocations(javax.servlet.ServletContext servletContext)
servletContext
- current servlet context
protected String[] getExclusiveConfigLocations(javax.servlet.ServletContext servletContext)
servletContext
- current servlet context
protected boolean isBeanDefinitionOverridingAllowed(javax.servlet.ServletContext servletContext)
servletContext
- current servlet context
protected boolean isMergingWithOuterResourcesAllowed(javax.servlet.ServletContext servletContext)
servletContext
- current servlet context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |