org.ow2.jonas.ejb2.internal
Class EJB21Deployer

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

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

Deployer of the EJB 2.1 deployable.

Author:
Florent BENOIT

Constructor Summary
EJB21Deployer()
           
 
Method Summary
 void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy an EJB deployable.
protected  void deployEJB21JAR(org.ow2.util.ee.deploy.api.deployable.EJB21Deployable ejbJarDeployable)
          Deploy the given EJB-JAR.
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 setEjb21Service(org.ow2.jonas.ejb2.EJBService ejb21Service)
          Sets the EJB 2.1 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 EJB 2.1 deployable.
protected  void undeployEJB21JAR(org.ow2.util.ee.deploy.api.deployable.EJB21Deployable ejbJarDeployable)
          Undeploy the given EJB-JAR.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJB21Deployer

public EJB21Deployer()
Method Detail

undeployEJB21JAR

protected void undeployEJB21JAR(org.ow2.util.ee.deploy.api.deployable.EJB21Deployable ejbJarDeployable)
                         throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Undeploy the given EJB-JAR.

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

deployEJB21JAR

protected void deployEJB21JAR(org.ow2.util.ee.deploy.api.deployable.EJB21Deployable ejbJarDeployable)
                       throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy the given EJB-JAR.

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

deploy

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

setEjb21Service

public void setEjb21Service(org.ow2.jonas.ejb2.EJBService ejb21Service)
Sets the EJB 2.1 service.

Parameters:
ejb21Service - the EJB 2.1 service.


Copyright © 2008 OW2 Consortium. All Rights Reserved.