org.ow2.jonas.web.base
Class WARDeployer

java.lang.Object
  extended by org.ow2.jonas.web.base.WARDeployer
All Implemented Interfaces:
org.ow2.util.ee.deploy.api.deployer.IDeployer

public class WARDeployer
extends Object
implements org.ow2.util.ee.deploy.api.deployer.IDeployer

Deployer of the WAR deployable.

Author:
Florent BENOIT

Constructor Summary
WARDeployer()
           
 
Method Summary
 void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy a WAR deployable.
protected  void deployWAR(org.ow2.util.ee.deploy.api.deployable.WARDeployable warDeployable)
          Deploy the given WAR.
protected  File getFile(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Allows to get a File from the given Deployable.
 boolean isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Checks if the given deployable is deployed or not.
 void setWebContainerService(JWebContainerService webContainerService)
          Sets the WEB container service.
 boolean supports(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Checks if the given deployable is supported by the Deployer.
 void undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Undeploy the given RAR deployable.
protected  void undeployWAR(org.ow2.util.ee.deploy.api.deployable.WARDeployable warDeployable)
          Undeploy the given WAR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WARDeployer

public WARDeployer()
Method Detail

deployWAR

protected void deployWAR(org.ow2.util.ee.deploy.api.deployable.WARDeployable warDeployable)
                  throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy the given WAR.

Parameters:
warDeployable - the deployable to add.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the WAR is not deployed.

undeployWAR

protected void undeployWAR(org.ow2.util.ee.deploy.api.deployable.WARDeployable warDeployable)
                    throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Undeploy the given WAR.

Parameters:
warDeployable - the deployable to remove.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the WAR is not undeployed.

deploy

public void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
            throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy a WAR deployable.

Specified by:
deploy in interface org.ow2.util.ee.deploy.api.deployer.IDeployer
Parameters:
deployable - a given deployable
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the deployment is not done.

isDeployed

public boolean isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
                   throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Checks if the given deployable is deployed or not.

Specified by:
isDeployed in interface org.ow2.util.ee.deploy.api.deployer.IDeployer
Parameters:
deployable - test if a given deployable is already deployed.
Returns:
true if the deployable is deployed.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the undeploy operation fails.

getFile

protected File getFile(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
                throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Allows to get a File from the given Deployable.

Parameters:
deployable - the given deployable.
Returns:
a File object of this deployable
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the File can't be obtained.

supports

public boolean supports(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
Checks if the given deployable is supported by the Deployer.

Specified by:
supports in interface org.ow2.util.ee.deploy.api.deployer.IDeployer
Parameters:
deployable - the deployable to be checked
Returns:
true if it is supported, else false.

undeploy

public void undeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
              throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Undeploy the given RAR deployable.

Specified by:
undeploy in interface org.ow2.util.ee.deploy.api.deployer.IDeployer
Parameters:
deployable - a given deployable to undeploy
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the undeploy operation fails.

setWebContainerService

public void setWebContainerService(JWebContainerService webContainerService)
Sets the WEB container service.

Parameters:
webContainerService - the web container service.


Copyright ? 2009 OW2 Consortium. All Rights Reserved.