org.codehaus.cargo.container.jetty
Class Jetty6xInstalledLocalDeployer

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.jetty.Jetty6xInstalledLocalDeployer
All Implemented Interfaces:
Deployer, Loggable

public class Jetty6xInstalledLocalDeployer
extends AbstractCopyingInstalledLocalDeployer

A deployer for webapps that deploys to a Jetty 6.x installed instance.

Version:
$Id: Jetty6xInstalledLocalDeployer.java 1725 2008-09-22 18:58:15Z mwringe $

Constructor Summary
Jetty6xInstalledLocalDeployer(InstalledLocalContainer container)
          
 
Method Summary
protected  void deployWar(java.lang.String deployableDir, WAR war)
          
 java.lang.String getDeployableDir()
          Specifies the directory Deployables should be copied to.
 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
canBeDeployed, deploy, deployEar, deployEjb, deployExpandedRar, deployExpandedSar, deployExpandedWar, deployFile, deployRar, deploySar, 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, redeploy, start, stop, undeploy, 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

Jetty6xInstalledLocalDeployer

public Jetty6xInstalledLocalDeployer(InstalledLocalContainer container)

See Also:
AbstractCopyingInstalledLocalDeployer.AbstractCopyingInstalledLocalDeployer(org.codehaus.cargo.container.InstalledLocalContainer)
Method Detail

getDeployableDir

public java.lang.String getDeployableDir()
Specifies the directory Deployables should be copied to. For Jetty this is the webapps directory.

Specified by:
getDeployableDir in class AbstractCopyingInstalledLocalDeployer
Returns:
Deployable the directory to deploy to

deployWar

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

We override the base implementation because Jetty requires a context XML file deployed in its context dir to perform hot deployment. Thus we need to create that context file

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


Copyright © 2004-2011 Codehaus. All Rights Reserved.