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 JBossdeploy
directory.
-
-
Constructor Summary
Constructors Constructor Description JBossInstalledLocalDeployer(LocalContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDeployableDir(Deployable deployable)
Specifies the directoryDeployable
s should be copied to.protected String
getDeployableName(Deployable deployable)
Gets the deployable name for the givendeployable
.void
undeploy(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 directoryDeployable
s should be copied to.. For JBoss container the target is thedeploy
directory.- Specified by:
getDeployableDir
in 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.war
so 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.xml
file, it will return the original WAR file name.- Overrides:
getDeployableName
in classAbstractCopyingInstalledLocalDeployer
- Parameters:
deployable
- Deployable to get the name for.- Returns:
- Deployable name.
-
undeploy
public void undeploy(Deployable deployable)
Removes previously deployed artifact.- Specified by:
undeploy
in interfaceDeployer
- Overrides:
undeploy
in classAbstractDeployer
- Parameters:
deployable
- artifact to undeploy
-
-