org.abstracthorizon.extend.server.deployment.danube
Class DanubeWarModuleLoader

java.lang.Object
  extended by org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
      extended by org.abstracthorizon.extend.support.spring.service.SpringAbstractServiceModuleLoader
          extended by org.abstracthorizon.extend.support.spring.service.ServiceModuleLoader
              extended by 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

Field Summary
 
Fields inherited from class org.abstracthorizon.extend.support.spring.service.ServiceModuleLoader
bufferSize, INITIAL_BUFFER_SIZE, redeployURLScanner
 
Fields inherited from class org.abstracthorizon.extend.support.spring.service.SpringAbstractServiceModuleLoader
root
 
Fields inherited from class org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
deploymentManager, extensions
 
Constructor Summary
DanubeWarModuleLoader()
          Empty constructor.
 
Method Summary
 boolean canLoad(URI uri)
          Returns true if "web-application.xml" exists in specified directory.
protected  AbstractApplicationContextModule createModule(URL url)
          Creates new module DanubeWebApplicationContext module
protected  void preDefinitionProcessing(AbstractApplicationContextModule service)
          Called before module is pronounced defined
 void setApplicationContext(ApplicationContext applicationContext)
          Sets application context
 
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 org.abstracthorizon.extend.support.spring.service.SpringAbstractServiceModuleLoader
start
 
Methods inherited from class org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
getDeploymentManager, getExtensions, setDeploymentManager, setExtensions, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DanubeWarModuleLoader

public DanubeWarModuleLoader()
Empty constructor.

Method Detail

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.