|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.io.DefaultResourceLoader org.springframework.context.support.AbstractApplicationContext org.springframework.context.support.AbstractRefreshableApplicationContext org.springframework.context.support.AbstractXmlApplicationContext org.abstracthorizon.extend.support.spring.deployment.AbstractApplicationContextModule org.abstracthorizon.extend.support.spring.service.ServiceApplicationContextModule org.abstracthorizon.extend.server.deployment.tomcat.TomcatWebApplicationContext
public class TomcatWebApplicationContext
Module that represents a war module deployed with tomcat. Also it can define beans in a same way as service application module (this is an extension of it).
It uses "WEB-INF/web-application.xml" for application context xml.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.abstracthorizon.extend.support.spring.deployment.AbstractApplicationContextModule |
---|
AbstractApplicationContextModule.DeployersDefaultListableBeanFactory |
Field Summary | |
---|---|
protected org.apache.catalina.Context |
context
Context this module is running under |
protected String |
contextPath
Context path for this module |
protected org.apache.catalina.Host |
host
Reference to the Host this context is deploy under |
protected org.apache.catalina.startup.Embedded |
tomcat
Reference to embedded tomcat |
protected ApplicationContext |
webServerContext
Context of web server - tomcat's service application context |
Fields inherited from class org.abstracthorizon.extend.support.spring.service.ServiceApplicationContextModule |
---|
serviceBeans |
Fields inherited from class org.abstracthorizon.extend.support.spring.deployment.AbstractApplicationContextModule |
---|
dependOnThis, dependsOn, deploymentManager, internalClassLoader, moduleId, originalLocation, overallClassLoader, serviceFile, state, workingLocation |
Fields inherited from class org.springframework.context.support.AbstractApplicationContext |
---|
APPLICATION_EVENT_MULTICASTER_BEAN_NAME, MESSAGE_SOURCE_BEAN_NAME |
Fields inherited from interface org.abstracthorizon.extend.server.deployment.Module |
---|
CREATED, DEFINED, STARTED, UNDEFINED, WAITING_ON_CREATE, WAITING_ON_CREATE_TO_START, WAITING_ON_START |
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
---|
FACTORY_BEAN_PREFIX |
Fields inherited from interface org.springframework.beans.factory.BeanFactory |
---|
FACTORY_BEAN_PREFIX |
Fields inherited from interface org.springframework.core.io.support.ResourcePatternResolver |
---|
CLASSPATH_ALL_URL_PREFIX |
Fields inherited from interface org.springframework.core.io.ResourceLoader |
---|
CLASSPATH_URL_PREFIX |
Constructor Summary | |
---|---|
TomcatWebApplicationContext(ModuleId moduleId)
Empty constructor |
Method Summary | |
---|---|
protected void |
createInternal()
Obtains references to the embedded tomcat and to the host. |
protected void |
destroyInternal()
Removes all references of the embedded tomcat and the host |
protected String |
getContextFileName()
It uses "WEB-INF/web-application.xml" for application context xml. |
String |
getContextPath()
|
org.apache.catalina.Context |
getTomcatContext()
Returns tomcat context |
ApplicationContext |
getWebServerContext()
Tomcat's service application context |
void |
setContextPath(String contextPath)
|
void |
setWebServerContext(ApplicationContext webServerContext)
Set's tomcat's service application context |
protected void |
startInternal()
Creates and adds context to the obtained reference of the host. |
protected void |
stopInternal()
Removes context from the host. |
Methods inherited from class org.abstracthorizon.extend.support.spring.service.ServiceApplicationContextModule |
---|
getServiceBeans, initBeanDefinitionReader, setServiceBeans |
Methods inherited from class org.abstracthorizon.extend.support.spring.deployment.AbstractApplicationContextModule |
---|
create, createBeanFactory, createClassLoaders, createServiceFile, destroy, equals, getClassLoader, getConfigLocations, getDependOnThis, getDependsOn, getDeploymentManager, getModuleId, getOriginalLocation, getResource, getServiceFile, getState, getStateAsString, getWorkingLocation, processDependencies, setDeploymentManager, setLocation, setModuleId, setOriginalLocation, setState, start, stop, toString |
Methods inherited from class org.springframework.context.support.AbstractXmlApplicationContext |
---|
getConfigResources, loadBeanDefinitions, loadBeanDefinitions |
Methods inherited from class org.springframework.context.support.AbstractRefreshableApplicationContext |
---|
closeBeanFactory, customizeBeanFactory, getBeanFactory, refreshBeanFactory |
Methods inherited from class org.springframework.core.io.DefaultResourceLoader |
---|
getResourceByPath, setClassLoader |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.apache.catalina.startup.Embedded tomcat
protected org.apache.catalina.Host host
protected org.apache.catalina.Context context
protected ApplicationContext webServerContext
protected String contextPath
Constructor Detail |
---|
public TomcatWebApplicationContext(ModuleId moduleId)
Method Detail |
---|
protected void createInternal()
createInternal
in class ServiceApplicationContextModule
protected void startInternal()
startInternal
in class ServiceApplicationContextModule
protected void stopInternal()
stopInternal
in class ServiceApplicationContextModule
protected void destroyInternal()
destroyInternal
in class ServiceApplicationContextModule
protected String getContextFileName()
getContextFileName
in class AbstractApplicationContextModule
public ApplicationContext getWebServerContext()
public void setWebServerContext(ApplicationContext webServerContext)
webServerContext
- tomcat's service application contextpublic String getContextPath()
public void setContextPath(String contextPath)
contextPath
- The contextPath to set.public org.apache.catalina.Context getTomcatContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |