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
-
- Direct Known Subclasses:
JBoss7xInstalledLocalDeployer
public class JBossInstalledLocalDeployer extends AbstractCopyingInstalledLocalDeployer
Static deployer that deploys WARs and EARs to the JBossdeploydirectory.
-
-
Constructor Summary
Constructors Constructor Description JBossInstalledLocalDeployer(LocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDeployableDir(Deployable deployable)Specifies the directoryDeployables should be copied to.protected StringgetDeployableName(Deployable deployable)Gets the deployable name for the givendeployable.voidundeploy(Deployable deployable)Removes previously deployed artifact.-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
canBeDeployed, deploy, doDeploy, setShouldDeployExpanded, shouldDeployExpanded
-
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
-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployer
deploy, deploy, redeploy, redeploy, redeploy, start, start, stop, stop, undeploy
-
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject
getLogger, setLogger
-
-
-
-
Constructor Detail
-
JBossInstalledLocalDeployer
public JBossInstalledLocalDeployer(LocalContainer container)
-
-
Method Detail
-
getDeployableDir
public String getDeployableDir(Deployable deployable)
Specifies the directoryDeployables should be copied to.. For JBoss container the target is thedeploydirectory.- Specified by:
getDeployableDirin classAbstractCopyingInstalledLocalDeployer- Parameters:
deployable- Deployable to deploy.- Returns:
- Deployable directory
-
getDeployableName
protected String getDeployableName(Deployable deployable)
Gets the deployable name for the givendeployable.. We override the base implementation because JBoss requires that expanded WAR directories to end with.warso we have to rename the expanded WAR directory. See the JBoss documentation for AbstractWebDeployer. Moreover, when the JBoss WAR file has the context root set in thejboss-web.xmlfile, it will return the original WAR file name.- Overrides:
getDeployableNamein classAbstractCopyingInstalledLocalDeployer- Parameters:
deployable- Deployable to get the name for.- Returns:
- Deployable name.
-
undeploy
public void undeploy(Deployable deployable)
Removes previously deployed artifact.- Specified by:
undeployin interfaceDeployer- Overrides:
undeployin classAbstractDeployer- Parameters:
deployable- artifact to undeploy
-
-