|
GigaSpaces XAP 10.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.pu.container.jee.JeeProcessingUnitContainerProvider
public abstract class JeeProcessingUnitContainerProvider
An extension to the ApplicationContextProcessingUnitContainerProvider
that can handle JEE processing units.
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface org.openspaces.pu.container.spi.ApplicationContextProcessingUnitContainerProvider |
|---|
DEFAULT_FS_PU_CONTEXT_LOCATION, DEFAULT_PU_CONTEXT_LOCATION |
| Fields inherited from interface org.openspaces.pu.container.ProcessingUnitContainerProvider |
|---|
CONTAINER_CLASS_PROP |
| Fields inherited from interface org.openspaces.pu.container.DeployableProcessingUnitContainerProvider |
|---|
CONTEXT_PROPERTY_DEPLOY_PATH |
| Constructor Summary | |
|---|---|
JeeProcessingUnitContainerProvider()
|
|
| Method Summary | |
|---|---|
void |
addConfigLocation(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. |
BeanLevelProperties |
getBeanLevelProperties()
|
ClusterInfo |
getClusterInfo()
|
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 |
setBeanLevelProperties(BeanLevelProperties beanLevelProperties)
Sets the BeanLevelProperties that will be used to
configure this processing unit. |
void |
setClassLoader(ClassLoader classLoader)
Sets the class loader this processing unit container will load the application context with. |
void |
setClusterInfo(ClusterInfo clusterInfo)
Sets the ClusterInfo that will be used to configure this
processing unit. |
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(ApplicationContext parentContext)
Sets Spring parent ApplicationContext that will be used
when constructing this processing unit application context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openspaces.pu.container.ProcessingUnitContainerProvider |
|---|
createContainer |
| Field Detail |
|---|
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 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
| Constructor Detail |
|---|
public JeeProcessingUnitContainerProvider()
| Method Detail |
|---|
public abstract String getJeeContainerType()
public Iterable<URL> getManifestURLs()
public void setManifestUrls(Iterable<URL> manifestURLs)
setManifestUrls in interface ManifestClasspathAwareProcessingUnitContainerProviderpublic void setBeanLevelProperties(BeanLevelProperties beanLevelProperties)
BeanLevelProperties that will be used to
configure this processing unit. When constructing the container this provider will
automatically add to the application context both
BeanLevelPropertyBeanPostProcessor and
BeanLevelPropertyPlaceholderConfigurer based on this
bean level properties.
setBeanLevelProperties in interface BeanLevelPropertiesAwarepublic BeanLevelProperties getBeanLevelProperties()
public void setClusterInfo(ClusterInfo clusterInfo)
ClusterInfo that will be used to configure this
processing unit. When constructing the container this provider will automatically add to the
application context the ClusterInfoBeanPostProcessor in
order to allow injection of cluster info into beans that implement
ClusterInfoAware.
setClusterInfo in interface ClusterInfoAwareclusterInfo - The cluster information to be injectedpublic ClusterInfo getClusterInfo()
public void setClassLoader(ClassLoader classLoader)
setClassLoader in interface ClassLoaderAwareProcessingUnitContainerProviderpublic void setDeployPath(File warPath)
setDeployPath in interface DeployableProcessingUnitContainerProviderpublic File getDeployPath()
public void addConfigLocation(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 interface ApplicationContextProcessingUnitContainerProvider
public void addConfigLocation(String path)
throws IOException
PathMatchingResourcePatternResolver.
addConfigLocation in interface ApplicationContextProcessingUnitContainerProviderIOExceptionPathMatchingResourcePatternResolverpublic void setParentContext(ApplicationContext parentContext)
ApplicationContext that will be used
when constructing this processing unit application context.
protected Iterable<String> getWebAppClassLoaderJars()
protected Iterable<String> getWebAppClassLoaderClassPath()
protected ClassLoader getJeeClassLoader()
throws Exception
Exceptionprotected ResourceApplicationContext initApplicationContext()
public static String getJeeContainerJarPath(String jeeContainer)
public static String getJeeContainer(BeanLevelProperties properties)
|
GigaSpaces XAP 10.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||