|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.danube.DanubeWebApplicationContext
public class DanubeWebApplicationContext
Module that represents Danube web application.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.abstracthorizon.extend.support.spring.deployment.AbstractApplicationContextModule |
|---|
AbstractApplicationContextModule.DeployersDefaultListableBeanFactory |
| Field Summary | |
|---|---|
protected String |
contextPath
Context path this web application is going to be deployed on |
protected org.abstracthorizon.danube.http.matcher.Prefix |
matcher
"path" this context is deployed at root level with. |
protected ApplicationContext |
webServerContext
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 | |
|---|---|
DanubeWebApplicationContext(ModuleId moduleId)
Empty constructor. |
|
| Method Summary | |
|---|---|
protected void |
createInternal()
Sets this module dependancy on (danube's) module that created loader. |
protected void |
destroyInternal()
Empty implementation |
protected String |
getContextFileName()
Returns "web-application.xml" |
String |
getContextPath()
|
ApplicationContext |
getWebServerContext()
Returns web server's context |
protected void |
initBeanDefinitionReader(XmlBeanDefinitionReader xmlbeandefinitionreader)
Sets up parser for this application context. |
void |
setContextPath(String contextPath)
|
void |
setWebServerContext(ApplicationContext webServerContext)
Sets web server's context |
protected void |
startInternal()
Obtains reference to the "web-application" bean and uses it while creating Prefix matcher with context path. |
protected void |
stopInternal()
Removes previously created matcher. |
| Methods inherited from class org.abstracthorizon.extend.support.spring.service.ServiceApplicationContextModule |
|---|
getServiceBeans, 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.abstracthorizon.danube.http.matcher.Prefix matcher
protected String contextPath
protected ApplicationContext webServerContext
| Constructor Detail |
|---|
public DanubeWebApplicationContext(ModuleId moduleId)
| Method Detail |
|---|
protected void initBeanDefinitionReader(XmlBeanDefinitionReader xmlbeandefinitionreader)
DanubeWarModuleXmlParser without validation
with AbstractApplicationContextModule.internalClassLoader.
initBeanDefinitionReader in class ServiceApplicationContextModuleprotected void createInternal()
createInternal in class ServiceApplicationContextModuleprotected void startInternal()
Prefix matcher with context path. Context path is or one supplied through
"<context-path>" tag or name of the module if tag is not specified.
Newly created matcher is then added to the http server connection handler.
startInternal in class ServiceApplicationContextModuleprotected void stopInternal()
stopInternal in class ServiceApplicationContextModuleprotected void destroyInternal()
destroyInternal in class ServiceApplicationContextModuleprotected String getContextFileName()
getContextFileName in class AbstractApplicationContextModulepublic ApplicationContext getWebServerContext()
public void setWebServerContext(ApplicationContext webServerContext)
webServerContext - web server's contextpublic String getContextPath()
public void setContextPath(String contextPath)
contextPath - The contextPath to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||