|
||||||||||
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.spring.server.deployment.jetty.JettyWebApplicationContext
public class JettyWebApplicationContext
Module that represents a war module deployed with Jetty. 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.mortbay.jetty.webapp.WebAppContext |
context
Jetty context |
protected String |
contextPath
Context path for this module |
protected org.mortbay.jetty.Server |
jetty
Reference to embedded Jetty |
protected ApplicationContext |
webServerContext
Context of web server - Jetty'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 | |
---|---|
JettyWebApplicationContext(ModuleId moduleId)
Empty constructor |
Method Summary | |
---|---|
protected void |
createInternal()
Obtains references to the embedded Jetty and to the host. |
protected void |
destroyInternal()
Removes all references of the embedded Jetty and the host |
protected String |
getContextFileName()
It uses "WEB-INF/web-application.xml" for application context xml. |
String |
getContextPath()
|
org.mortbay.jetty.servlet.Context |
getJettyContext()
Returns Jetty context |
ApplicationContext |
getWebServerContext()
Jetty's service application context |
void |
setContextPath(String contextPath)
|
void |
setWebServerContext(ApplicationContext webServerContext)
Set's Jetty'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.mortbay.jetty.Server jetty
protected org.mortbay.jetty.webapp.WebAppContext context
protected ApplicationContext webServerContext
protected String contextPath
Constructor Detail |
---|
public JettyWebApplicationContext(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
- Jetty's service application contextpublic String getContextPath()
public void setContextPath(String contextPath)
contextPath
- The contextPath to set.public org.mortbay.jetty.servlet.Context getJettyContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |