public abstract class JeeProcessingUnitContainerProvider extends ApplicationContextProcessingUnitContainerProvider
ApplicationContextProcessingUnitContainerProvider
that can handle JEE processing units.Modifier and Type | Field and Description |
---|---|
static String |
APPLICATION_CONTEXT_CONTEXT
The
ServletContext key under which the ApplicationContext (loaded from the pu.xml ) is
stored. |
static String |
BEAN_LEVEL_PROPERTIES_CONTEXT
The
ServletContext key under which the BeanLevelProperties is stored. |
static String |
CLUSTER_INFO_CONTEXT
The
ServletContext key under which the ClusterInfo is stored. |
static String |
DEFAULT_JEE_CONTAINER |
static String |
JEE_CONTAINER_PROPERTY_NAME |
static String |
JETTY_PORT_ACTUAL_CONTEXT |
static String |
JETTY_PORT_CONTEXT_PREFIX |
static String |
JETTY_PORT_CONTEXT_SUFFIX |
DEFAULT_FS_PU_CONTEXT_LOCATION, DEFAULT_PU_CONTEXT_LOCATION
CONTAINER_CLASS_PROP, CONTEXT_PROPERTY_DEPLOY_PATH, SPACE_NAME_PROPERTY_KEY
Constructor and Description |
---|
JeeProcessingUnitContainerProvider() |
Modifier and Type | Method and Description |
---|---|
void |
addConfigLocation(org.springframework.core.io.Resource resource)
Adds a config location using Springs
Resource
abstraction. |
void |
addConfigLocation(String path)
Adds a config location based on a String description using Springs
PathMatchingResourcePatternResolver . |
File |
getDeployPath() |
protected ClassLoader |
getJeeClassLoader() |
static String |
getJeeContainer(BeanLevelProperties properties) |
static String |
getJeeContainerJarPath(String jeeContainer) |
abstract String |
getJeeContainerType() |
Iterable<URL> |
getManifestURLs() |
protected Iterable<String> |
getWebAppClassLoaderClassPath() |
protected Iterable<String> |
getWebAppClassLoaderJars() |
protected ResourceApplicationContext |
initApplicationContext() |
void |
setClassLoader(ClassLoader classLoader)
Sets the class loader this processing unit container will load the application context with.
|
void |
setDeployPath(File warPath)
Sets the deploy path where the exploded war jetty will work with is located.
|
void |
setManifestUrls(Iterable<URL> manifestURLs) |
void |
setParentContext(org.springframework.context.ApplicationContext parentContext)
Sets Spring parent
ApplicationContext that will be used
when constructing this processing unit application context. |
createContainer, getBeanLevelProperties, getClusterInfo, getConfig, setBeanLevelProperties, setClusterInfo, setMetricRegistrator, setSpaceName
public static final String CLUSTER_INFO_CONTEXT
ServletContext
key under which the ClusterInfo
is stored.public static final String BEAN_LEVEL_PROPERTIES_CONTEXT
ServletContext
key under which the BeanLevelProperties
is stored.public static final String JETTY_PORT_CONTEXT_PREFIX
public static final String JETTY_PORT_CONTEXT_SUFFIX
public static final String JETTY_PORT_ACTUAL_CONTEXT
public static final String APPLICATION_CONTEXT_CONTEXT
ServletContext
key under which the ApplicationContext
(loaded from the pu.xml
) is
stored.public static final String JEE_CONTAINER_PROPERTY_NAME
public static final String DEFAULT_JEE_CONTAINER
public abstract String getJeeContainerType()
public void setManifestUrls(Iterable<URL> manifestURLs)
setManifestUrls
in class ProcessingUnitContainerProvider
public void setClassLoader(ClassLoader classLoader)
setClassLoader
in class ProcessingUnitContainerProvider
public void setDeployPath(File warPath)
setDeployPath
in class ProcessingUnitContainerProvider
public File getDeployPath()
public void addConfigLocation(org.springframework.core.io.Resource resource)
Resource
abstraction. 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
).
addConfigLocation
in class ApplicationContextProcessingUnitContainerProvider
public void addConfigLocation(String path) throws IOException
PathMatchingResourcePatternResolver
.addConfigLocation
in class ApplicationContextProcessingUnitContainerProvider
IOException
PathMatchingResourcePatternResolver
public void setParentContext(org.springframework.context.ApplicationContext parentContext)
ApplicationContext
that will be used
when constructing this processing unit application context.protected ClassLoader getJeeClassLoader() throws Exception
Exception
protected ResourceApplicationContext initApplicationContext()
public static String getJeeContainer(BeanLevelProperties properties)
Copyright © GigaSpaces.