| |
|
| java.lang.Object nl.hippo.util.spring.MultipleXmlContextLoader
MultipleXmlContextLoader | public class MultipleXmlContextLoader (Code) | | |
Method Summary | |
public void | closeWebApplicationContext(ServletContext servletContext) Close Spring's web application context for the given servlet context. | protected WebApplicationContext | createWebApplicationContext(ServletContext servletContext, ApplicationContext parent) Instantiate the root WebApplicationContext for this loader, either a default
XmlWebApplicationContext or a custom context class if specified. | public WebApplicationContext | initWebApplicationContext(ServletContext servletContext) Initialize Spring's web application context for the given servlet context,
regarding the "contextClass" and "contextConfigLocation" context-params. | protected ApplicationContext | loadParentContext(ServletContext servletContext) Template method which may be overridden by a subclass to load or obtain
an ApplicationContext instance which will be used as the parent context
of the root WebApplicationContext (if it is not null). |
CONFIG_LOCATION_PARAM | final public static String CONFIG_LOCATION_PARAM(Code) | | Name of servlet context parameter that can specify the config location
for the root context, falling back to the implementation's default else.
See Also: org.springframework.web.context.support.XmlWebApplicationContext.DEFAULT_CONFIG_LOCATION |
CONTEXT_CLASS_PARAM | final public static String CONTEXT_CLASS_PARAM(Code) | | Config param for the root WebApplicationContext implementation class to use:
"contextClass"
|
DEFAULT_CONTEXT_CLASS | final public static Class DEFAULT_CONTEXT_CLASS(Code) | | Default context class for ContextLoader.
See Also: org.springframework.web.context.support.XmlWebApplicationContext |
closeWebApplicationContext | public void closeWebApplicationContext(ServletContext servletContext) throws ApplicationContextException(Code) | | Close Spring's web application context for the given servlet context.
Parameters: servletContext - current servlet context |
createWebApplicationContext | protected WebApplicationContext createWebApplicationContext(ServletContext servletContext, ApplicationContext parent) throws BeansException(Code) | | Instantiate the root WebApplicationContext for this loader, either a default
XmlWebApplicationContext or a custom context class if specified.
This implementation expects custom contexts to implement ConfigurableWebApplicationContext.
Can be overridden in subclasses.
Parameters: servletContext - current servlet context Parameters: parent - the parent ApplicationContext to use, or null if none throws: BeansException - if the context couldn't be initialized See Also: MultipleXmlContextLoader.CONTEXT_CLASS_PARAM See Also: MultipleXmlContextLoader.DEFAULT_CONTEXT_CLASS See Also: ConfigurableWebApplicationContext See Also: org.springframework.web.context.support.XmlWebApplicationContext |
loadParentContext | protected ApplicationContext loadParentContext(ServletContext servletContext) throws BeansException(Code) | | Template method which may be overridden by a subclass to load or obtain
an ApplicationContext instance which will be used as the parent context
of the root WebApplicationContext (if it is not null).
The main reason for this hook is to allow root web application contexts
to be children of a shared EAR context that's also visible to EJBs.
For pure web applications, there is usually no need to worry about this.
Parameters: servletContext - current servlet context the parent application context, or null if none throws: BeansException - if the context couldn't be initialized |
|
|
|