org.codehaus.cargo.container.jboss
Class JBossInstalledLocalDeployer

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

public class JBossInstalledLocalDeployer
extends org.codehaus.cargo.container.spi.deployer.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(org.codehaus.cargo.container.InstalledLocalContainer container)
          {@inheritDoc}
 
Method Summary
protected  void deployExpandedWar(java.lang.String deployableDir, org.codehaus.cargo.container.deployable.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(org.codehaus.cargo.container.InstalledLocalContainer container)
{@inheritDoc}

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.

Returns:
Deployable directory for the container

deployExpandedWar

protected void deployExpandedWar(java.lang.String deployableDir,
                                 org.codehaus.cargo.container.deployable.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.

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


Copyright © 2004-2008 Codehaus. All Rights Reserved.