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 1753 2008-10-20 13:53:32Z mwringe $

Constructor Summary
JBossInstalledLocalDeployer(InstalledLocalContainer container)
          
 
Method Summary
protected  void deployExpandedWar(java.lang.String deployableDir, WAR war)
          Copy the full expanded WAR directory to the deployable directory, renaming it if the user has specified a custom context for this expanded WAR.
 java.lang.String getDeployableDir()
          Specifies the directory where Deployables should be copied to.
 void redeploy(Deployable deployable)
          Undeploys and then deploys artifact.
 void undeploy(Deployable deployable)
          Removes previously deployed artifact.
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
canBeDeployed, deploy, deployEar, deployEjb, deployExpandedRar, deployExpandedSar, deployFile, deployRar, deploySar, deployWar, setShouldDeployExpandedRARs, setShouldDeployExpandedSARs, 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, 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)
Copy the full expanded WAR directory to the deployable directory, renaming it if the user has specified a custom context for this expanded WAR.

Overrides:
deployExpandedWar in class AbstractCopyingInstalledLocalDeployer
Parameters:
deployableDir - the directory where the container is expecting deployables to be dropped for deployments
war - the expanded 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.


redeploy

public void redeploy(Deployable deployable)
Undeploys and then deploys artifact. Assumes that server is shutdown.

Specified by:
redeploy in interface Deployer
Overrides:
redeploy in class AbstractDeployer
Parameters:
deployable - artifact to redeploy

undeploy

public void undeploy(Deployable deployable)
Removes previously deployed artifact.

Specified by:
undeploy in interface Deployer
Overrides:
undeploy in class AbstractDeployer
Parameters:
deployable - artifact to undeploy


Copyright © 2004-2011 Codehaus. All Rights Reserved.