org.ow2.jonas.ejb.easybeans
Class EasyBeansDeployer

java.lang.Object
  extended by org.ow2.jonas.ejb.easybeans.EasyBeansDeployer
All Implemented Interfaces:
org.ow2.util.ee.deploy.api.deployer.IDeployer

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

This deployer will deploy EJB3 on EasyBeans.

Author:
Florent BENOIT

Constructor Summary
EasyBeansDeployer()
           
 
Method Summary
 void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy a deployable.
protected  void deployEJB3(org.ow2.util.ee.deploy.api.deployable.EJB3Deployable ejb3Deployable)
          Deploy the given deployable.
 boolean isDeployed(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Checks if the given deployable is deployed or not.
 void setEmbedded(org.ow2.easybeans.server.Embedded easybeansServer)
          Sets the EasyBeans embedded instance.
 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 deployable.
protected  void undeployEJB3(org.ow2.util.ee.deploy.api.deployable.EJB3Deployable ejb3Deployable)
          Undeploy the given EJB3.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EasyBeansDeployer

public EasyBeansDeployer()
Method Detail

deploy

public void deploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
            throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy a deployable. It can be an EJB jar, EAR, WAR, etc.

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.

deployEJB3

protected void deployEJB3(org.ow2.util.ee.deploy.api.deployable.EJB3Deployable ejb3Deployable)
                   throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy the given deployable.

Parameters:
ejb3Deployable - the EJB3 deployable.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EJB3 is not deployed.

undeployEJB3

protected void undeployEJB3(org.ow2.util.ee.deploy.api.deployable.EJB3Deployable ejb3Deployable)
                     throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Undeploy the given EJB3.

Parameters:
ejb3Deployable - the deployable to remove.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EJB3 is not deployed.

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 deployable. It can be an EJB jar, EAR, WAR, etc.

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.

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.

setEmbedded

public void setEmbedded(org.ow2.easybeans.server.Embedded easybeansServer)
Sets the EasyBeans embedded instance.

Parameters:
easybeansServer - the EasyBeans instance.


Copyright © 2007 OW2 Consortium. All Rights Reserved.