Class Jonas4xInstalledLocalDeployer
- 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.jonas.Jonas4xInstalledLocalDeployer
-
public class Jonas4xInstalledLocalDeployer extends AbstractCopyingInstalledLocalDeployer
Static deployer that deploys WAR, EAR, EJB and RAR to JOnAS.
-
-
Constructor Summary
Constructors Constructor Description Jonas4xInstalledLocalDeployer(Jonas4xInstalledLocalContainer container)Jonas4xInstalledLocalDeployer(LocalContainer container, Jonas4xAdmin admin)Creation of a local deployer with a given Jonas4xAdmin object and file handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoDeploy(String deployableDir, Deployable deployable)Do the actual deployment.StringgetDeployableDir(Deployable deployable)Specifies the directoryDeployables should be copied to.voidundeploy(Deployable deployable)Undeploy aDeployablefrom the running container.-
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractCopyingInstalledLocalDeployer
canBeDeployed, deploy, getDeployableName, 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
-
Jonas4xInstalledLocalDeployer
public Jonas4xInstalledLocalDeployer(Jonas4xInstalledLocalContainer container)
-
Jonas4xInstalledLocalDeployer
public Jonas4xInstalledLocalDeployer(LocalContainer container, Jonas4xAdmin admin)
Creation of a local deployer with a given Jonas4xAdmin object and file handler.- Parameters:
container- the container to be usedadmin- the JOnAS admin to use for deployment
-
-
Method Detail
-
doDeploy
protected void doDeploy(String deployableDir, Deployable deployable)
Do the actual deployment. This can be overriden.. We override the base implementation because JOnAS 4.x handles hot deployment differently than just copying files over.- Overrides:
doDeployin classAbstractCopyingInstalledLocalDeployer- Parameters:
deployableDir- Directory in which to deploy.deployable- Deployable to deploy.
-
undeploy
public void undeploy(Deployable deployable) throws CargoException
Undeploy aDeployablefrom the running container. The service becomes unavailable for requests.- Specified by:
undeployin interfaceDeployer- Overrides:
undeployin classAbstractDeployer- Parameters:
deployable- theDeployableto undeploy- Throws:
CargoException
-
getDeployableDir
public String getDeployableDir(Deployable deployable)
Specifies the directoryDeployables should be copied to.. For JOnAS 4.x this is theappsdirectory for EARs,ejbjarsdirectory for EJBs,rarsdirectory for RARs and thewebappsdirectory for WARs.- Specified by:
getDeployableDirin classAbstractCopyingInstalledLocalDeployer- Parameters:
deployable- Deployable to deploy.- Returns:
- Deployable directory
-
-