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 void
doDeploy(String deployableDir, Deployable deployable)
Do the actual deployment.String
getDeployableDir(Deployable deployable)
Specifies the directoryDeployable
s should be copied to.void
undeploy(Deployable deployable)
Undeploy aDeployable
from 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:
doDeploy
in classAbstractCopyingInstalledLocalDeployer
- Parameters:
deployableDir
- Directory in which to deploy.deployable
- Deployable to deploy.
-
undeploy
public void undeploy(Deployable deployable) throws CargoException
Undeploy aDeployable
from the running container. The service becomes unavailable for requests.- Specified by:
undeploy
in interfaceDeployer
- Overrides:
undeploy
in classAbstractDeployer
- Parameters:
deployable
- theDeployable
to undeploy- Throws:
CargoException
-
getDeployableDir
public String getDeployableDir(Deployable deployable)
Specifies the directoryDeployable
s should be copied to.. For JOnAS 4.x this is theapps
directory for EARs,ejbjars
directory for EJBs,rars
directory for RARs and thewebapps
directory for WARs.- Specified by:
getDeployableDir
in classAbstractCopyingInstalledLocalDeployer
- Parameters:
deployable
- Deployable to deploy.- Returns:
- Deployable directory
-
-