org.abstracthorizon.extend.server.deployment.danube
Class DanubeWarModuleLoader
java.lang.Object
org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
org.abstracthorizon.extend.support.spring.service.SpringAbstractServiceModuleLoader
org.abstracthorizon.extend.support.spring.service.ServiceModuleLoader
org.abstracthorizon.extend.server.deployment.danube.DanubeWarModuleLoader
- All Implemented Interfaces:
- ModuleLoader, ApplicationContextAware
public class DanubeWarModuleLoader
- extends ServiceModuleLoader
Danube war archive (or directory) module loader (deployer).
It checks if "web-application.xml" file is present and if so
deploys archive with Danube.
Current implementation creates context and deploys it with
current host (defined under "tomcat.host" name in
tomcat service archive).
- Author:
- Daniel Sendula
Methods inherited from class org.abstracthorizon.extend.support.spring.service.ServiceModuleLoader |
addFilesForScanning, copy, downloadArchive, getBufferSize, getRedeployURLScanner, load, loadAs, postDefinitionProcessing, setBufferSize, setRedeployURLScanner, toModuleId, unpackArchive |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DanubeWarModuleLoader
public DanubeWarModuleLoader()
- Empty constructor.
canLoad
public boolean canLoad(URI uri)
- Returns
true
if "web-application.xml" exists in specified directory.
- Specified by:
canLoad
in interface ModuleLoader
- Overrides:
canLoad
in class SpringAbstractServiceModuleLoader
- Parameters:
uri
- URI
- Returns:
true
if "web-application.xml" exists in specified directory.
createModule
protected AbstractApplicationContextModule createModule(URL url)
- Creates new module
DanubeWebApplicationContext
module
- Overrides:
createModule
in class ServiceModuleLoader
- Parameters:
url
- url for the module
- Returns:
- newly created module
preDefinitionProcessing
protected void preDefinitionProcessing(AbstractApplicationContextModule service)
- Called before module is pronounced defined
- Overrides:
preDefinitionProcessing
in class ServiceModuleLoader
- Parameters:
service
- service
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
- Sets application context
- Specified by:
setApplicationContext
in interface ApplicationContextAware
- Overrides:
setApplicationContext
in class SpringAbstractServiceModuleLoader
- Parameters:
applicationContext
- application context this bean is created under
- Throws:
BeansException
Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.