public class ProcessingUnitContextLoader
extends org.springframework.web.context.ContextLoader
ContextLoader
. Different in two aspects:
The first, it automatillcay loads the binded META-INF/spring/pu.xml
(binded
into the servlet context) as the parent application context. See loadParentContext(javax.servlet.ServletContext)
.
Second, it overrides the creation of
WebApplicationContext
and automatically adds ClusterInfo
and BeanLevelProperties
handling. It also delegates the objects to the web context level Spring application context.
Constructor and Description |
---|
ProcessingUnitContextLoader() |
Modifier and Type | Method and Description |
---|---|
protected org.springframework.web.context.WebApplicationContext |
createWebApplicationContext(javax.servlet.ServletContext servletContext,
org.springframework.context.ApplicationContext parent)
Creates a Spring
WebApplicationContext - ProcessingUnitWebApplicationContext . |
org.springframework.web.context.WebApplicationContext |
initWebApplicationContext(javax.servlet.ServletContext servletContext) |
protected org.springframework.context.ApplicationContext |
loadParentContext(javax.servlet.ServletContext servletContext)
Returns the application context bound under
JeeProcessingUnitContainerProvider.APPLICATION_CONTEXT_CONTEXT
within the servlet context. |
public org.springframework.web.context.WebApplicationContext initWebApplicationContext(javax.servlet.ServletContext servletContext) throws IllegalStateException, org.springframework.beans.BeansException
initWebApplicationContext
in class org.springframework.web.context.ContextLoader
IllegalStateException
org.springframework.beans.BeansException
protected org.springframework.context.ApplicationContext loadParentContext(javax.servlet.ServletContext servletContext) throws org.springframework.beans.BeansException
JeeProcessingUnitContainerProvider.APPLICATION_CONTEXT_CONTEXT
within the servlet context. This will act as the parent application context.loadParentContext
in class org.springframework.web.context.ContextLoader
org.springframework.beans.BeansException
protected org.springframework.web.context.WebApplicationContext createWebApplicationContext(javax.servlet.ServletContext servletContext, org.springframework.context.ApplicationContext parent) throws org.springframework.beans.BeansException
WebApplicationContext
- ProcessingUnitWebApplicationContext
. Adds
support to ClusterInfo
and BeanLevelProperties
processors. The objects themself are bounded in the ServletContext
.
createWebApplicationContext
in class org.springframework.web.context.ContextLoader
org.springframework.beans.BeansException
Copyright © GigaSpaces.