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()
          Build a new instance of the EasyBeans deployer.
 
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.
 org.ow2.jonas.properties.ServerProperties getServerProperties()
          Returns the server properties.
 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.
 void setServerProperties(org.ow2.jonas.properties.ServerProperties serverProperties)
          Set the server properties.
 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()
Build a new instance of the EasyBeans deployer.

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.

getServerProperties

public org.ow2.jonas.properties.ServerProperties getServerProperties()
Returns the server properties.

Returns:
the server properties

setServerProperties

public void setServerProperties(org.ow2.jonas.properties.ServerProperties serverProperties)
Set the server properties.

Parameters:
serverProperties - the given server properties


Copyright © 2008 OW2 Consortium. All Rights Reserved.