org.ow2.jonas.resource.internal
Class RARDeployer

java.lang.Object
  extended by org.ow2.jonas.resource.internal.RARDeployer
All Implemented Interfaces:
org.ow2.util.ee.deploy.api.deployer.IDeployer

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

This deployer will deploy RAR module.

Author:
Florent BENOIT

Constructor Summary
RARDeployer()
           
 
Method Summary
 void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy a RAR deployable.
protected  void deployRAR(org.ow2.util.ee.deploy.api.deployable.RARDeployable rarDeployable)
          Deploy the given RAR.
protected  File getFile(org.ow2.util.ee.deploy.api.deployable.RARDeployable rarDeployable)
          Allows to get a File from the given RAR Deployable.
 boolean isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Checks if the given deployable is deployed or not.
 void setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
          Sets the RAR 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 undeployRAR(org.ow2.util.ee.deploy.api.deployable.RARDeployable rarDeployable)
          Undeploy the given RAR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RARDeployer

public RARDeployer()
Method Detail

undeployRAR

protected void undeployRAR(org.ow2.util.ee.deploy.api.deployable.RARDeployable rarDeployable)
                    throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Undeploy the given RAR.

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

deployRAR

protected void deployRAR(org.ow2.util.ee.deploy.api.deployable.RARDeployable rarDeployable)
                  throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy the given RAR.

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

getFile

protected File getFile(org.ow2.util.ee.deploy.api.deployable.RARDeployable rarDeployable)
                throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Allows to get a File from the given RAR Deployable.

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

deploy

public void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
            throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy a RAR 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.

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.

setResourceService

public void setResourceService(org.ow2.jonas.resource.ResourceService resourceService)
Sets the RAR service.

Parameters:
resourceService - RAR service.


Copyright © 2008 OW2 Consortium. All Rights Reserved.