Package org.openspaces.pu.container.jee
Class JeeProcessingUnitContainerProvider
java.lang.Object
org.openspaces.pu.container.ProcessingUnitContainerProvider
org.openspaces.pu.container.spi.ApplicationContextProcessingUnitContainerProvider
org.openspaces.pu.container.jee.JeeProcessingUnitContainerProvider
- All Implemented Interfaces:
ClusterInfoAware,BeanLevelPropertiesAware
- Direct Known Subclasses:
JettyJeeProcessingUnitContainerProvider
public abstract class JeeProcessingUnitContainerProvider
extends ApplicationContextProcessingUnitContainerProvider
An extension to the
ApplicationContextProcessingUnitContainerProvider
that can handle JEE processing units.- Author:
- kimchy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTheServletContextkey under which theApplicationContext(loaded from thepu.xml) is stored.static final StringTheServletContextkey under which theBeanLevelPropertiesis stored.static final StringTheServletContextkey under which theClusterInfois stored.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.openspaces.pu.container.spi.ApplicationContextProcessingUnitContainerProvider
DEFAULT_FS_PU_CONTEXT_LOCATION, DEFAULT_PU_CONTEXT_LOCATIONFields inherited from class org.openspaces.pu.container.ProcessingUnitContainerProvider
CONTAINER_CLASS_PROP, CONTEXT_PROPERTY_DEPLOY_PATH, SPACE_NAME_PROPERTY_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConfigLocation(String path) Adds a config location based on a String description using SpringsPathMatchingResourcePatternResolver.voidaddConfigLocation(org.springframework.core.io.Resource resource) Adds a config location using SpringsResourceabstraction.protected ClassLoaderstatic StringgetJeeContainer(BeanLevelProperties properties) static PathgetJeeContainerJarPath(String jeeContainer) abstract Stringprotected ResourceApplicationContextvoidsetClassLoader(ClassLoader classLoader) Sets the class loader this processing unit container will load the application context with.voidsetDeployPath(File warPath) Sets the deploy path where the exploded war jetty will work with is located.voidsetManifestUrls(Iterable<URL> manifestURLs) voidsetParentContext(org.springframework.context.ApplicationContext parentContext) Sets Spring parentApplicationContextthat will be used when constructing this processing unit application context.Methods inherited from class org.openspaces.pu.container.ProcessingUnitContainerProvider
createContainer, getBeanLevelProperties, getClusterInfo, getConfig, setBeanLevelProperties, setClusterInfo, setMetricRegistrator, setSpaceName
-
Field Details
-
CLUSTER_INFO_CONTEXT
TheServletContextkey under which theClusterInfois stored.- See Also:
-
BEAN_LEVEL_PROPERTIES_CONTEXT
TheServletContextkey under which theBeanLevelPropertiesis stored.- See Also:
-
JETTY_PORT_CONTEXT_PREFIX
- See Also:
-
JETTY_PORT_CONTEXT_SUFFIX
- See Also:
-
JETTY_PORT_ACTUAL_CONTEXT
- Since:
- 12.1
- See Also:
-
APPLICATION_CONTEXT_CONTEXT
TheServletContextkey under which theApplicationContext(loaded from thepu.xml) is stored.- See Also:
-
JEE_CONTAINER_PROPERTY_NAME
- See Also:
-
DEFAULT_JEE_CONTAINER
- See Also:
-
-
Constructor Details
-
JeeProcessingUnitContainerProvider
public JeeProcessingUnitContainerProvider()
-
-
Method Details
-
getJeeContainerType
-
getManifestURLs
-
setManifestUrls
- Overrides:
setManifestUrlsin classProcessingUnitContainerProvider
-
setClassLoader
Sets the class loader this processing unit container will load the application context with.- Overrides:
setClassLoaderin classProcessingUnitContainerProvider
-
setDeployPath
Sets the deploy path where the exploded war jetty will work with is located.- Overrides:
setDeployPathin classProcessingUnitContainerProvider
-
getDeployPath
-
addConfigLocation
public void addConfigLocation(org.springframework.core.io.Resource resource) Adds a config location using SpringsResourceabstraction. This config location represents a Spring xml context.Note, once a config location is added that default location used when no config location is defined won't be used (the default location is
classpath*:/META-INF/spring/pu.xml).- Specified by:
addConfigLocationin classApplicationContextProcessingUnitContainerProvider
-
addConfigLocation
Adds a config location based on a String description using SpringsPathMatchingResourcePatternResolver.- Specified by:
addConfigLocationin classApplicationContextProcessingUnitContainerProvider- Throws:
IOException- See Also:
-
PathMatchingResourcePatternResolver
-
setParentContext
public void setParentContext(org.springframework.context.ApplicationContext parentContext) Sets Spring parentApplicationContextthat will be used when constructing this processing unit application context. -
getWebAppClassLoaderJars
-
getWebAppClassLoaderClassPath
-
getJeeClassLoader
- Throws:
Exception
-
initApplicationContext
-
getJeeContainerJarPath
-
getJeeContainer
-