org.codehaus.cargo.container.jboss
Class JBossInstalledLocalDeployer
java.lang.Object
org.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.spi.deployer.AbstractDeployer
org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployer
org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployer
org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
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 $
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JBossInstalledLocalDeployer
public JBossInstalledLocalDeployer(InstalledLocalContainer container)
-
- See Also:
AbstractCopyingInstalledLocalDeployer.AbstractCopyingInstalledLocalDeployer(InstalledLocalContainer)
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 deploymentswar - 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.