org.codehaus.cargo.container.jboss
Class JBossInstalledLocalDeployer

java.lang.Object
  extended by org.codehaus.cargo.util.log.LoggedObject
      extended by org.codehaus.cargo.container.spi.deployer.AbstractDeployer
          extended by org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
              extended by org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
                  extended by org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
                      extended by org.codehaus.cargo.container.jboss.JBossInstalledLocalDeployer
All Implemented Interfaces:
Deployer, Loggable

public class JBossInstalledLocalDeployer
extends AbstractCopyingInstalledLocalDeployer

Static deployer that deploys WARs and EARs to the JBoss deploy directory.

Version:
$Id: JBossInstalledLocalDeployer.java 1160 2006-07-30 20:15:34Z vmassol $

Constructor Summary
JBossInstalledLocalDeployer(InstalledLocalContainer container)
          
 
Method Summary
protected  void deployExpandedWar(java.lang.String deployableDir, WAR war)
          
 java.lang.String getDeployableDir()
          Specifies the directory where Deployables should be copied to.
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
canBeDeployed, deploy, deployEar, deployEjb, deployWar, setShouldDeployExpandedWARs
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
getType
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
getContainer, getFileHandler, setFileHandler
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, start, stop, undeploy
 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.util.log.Loggable
getLogger, setLogger
 

Constructor Detail

JBossInstalledLocalDeployer

public JBossInstalledLocalDeployer(InstalledLocalContainer container)

See Also:
AbstractCopyingInstalledLocalDeployer.AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer)
Method Detail

getDeployableDir

public java.lang.String getDeployableDir()
Specifies the directory where Deployables should be copied to. For JBoss container the target is the deploy directory.

Specified by:
getDeployableDir in class AbstractCopyingInstalledLocalDeployer
Returns:
Deployable directory for the container

deployExpandedWar

protected void deployExpandedWar(java.lang.String deployableDir,
                                 WAR war)

JBoss requires that expanded WAR directories end with .war so we have to rename the expanded WAR directory. See the JBoss documentation for AbstractWebDeployer.

Overrides:
deployExpandedWar in class AbstractCopyingInstalledLocalDeployer
See Also:
AbstractCopyingInstalledLocalDeployer.deployExpandedWar(String, org.codehaus.cargo.container.deployable.WAR)


Copyright © 2004-2011 Codehaus. All Rights Reserved.