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 SummaryConstructors Constructor Description Jonas4xInstalledLocalDeployer(Jonas4xInstalledLocalContainer container)Jonas4xInstalledLocalDeployer(LocalContainer container, Jonas4xAdmin admin)Creation of a local deployer with a given Jonas4xAdmin object and file handler.
 - 
Method SummaryAll 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.AbstractCopyingInstalledLocalDeployercanBeDeployed, deploy, getDeployableName, setShouldDeployExpanded, shouldDeployExpanded
 - 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractInstalledLocalDeployergetType
 - 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractLocalDeployergetContainer, getFileHandler
 - 
Methods inherited from class org.codehaus.cargo.container.spi.deployer.AbstractDeployerdeploy, deploy, redeploy, redeploy, redeploy, start, start, stop, stop, undeploy
 - 
Methods inherited from class org.codehaus.cargo.util.log.LoggedObjectgetLogger, setLogger
 
- 
 
- 
- 
- 
Constructor Detail- 
Jonas4xInstalledLocalDeployerpublic Jonas4xInstalledLocalDeployer(Jonas4xInstalledLocalContainer container) 
 - 
Jonas4xInstalledLocalDeployerpublic Jonas4xInstalledLocalDeployer(LocalContainer container, Jonas4xAdmin admin) Creation of a local deployer with a given Jonas4xAdmin object and file handler.- Parameters:
- container- the container to be used
- admin- the JOnAS admin to use for deployment
 
 
- 
 - 
Method Detail- 
doDeployprotected 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 class- AbstractCopyingInstalledLocalDeployer
- Parameters:
- deployableDir- Directory in which to deploy.
- deployable- Deployable to deploy.
 
 - 
undeploypublic void undeploy(Deployable deployable) throws CargoException Undeploy aDeployablefrom the running container. The service becomes unavailable for requests.- Specified by:
- undeployin interface- Deployer
- Overrides:
- undeployin class- AbstractDeployer
- Parameters:
- deployable- the- Deployableto undeploy
- Throws:
- CargoException
 
 - 
getDeployableDirpublic 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 class- AbstractCopyingInstalledLocalDeployer
- Parameters:
- deployable- Deployable to deploy.
- Returns:
- Deployable directory
 
 
- 
 
-