org.objectweb.easybeans.deployer
Class EasyBeansDeployer

java.lang.Object
  extended by org.objectweb.easybeans.deployer.AbsDeployer
      extended by org.objectweb.easybeans.deployer.EasyBeansDeployer
All Implemented Interfaces:
EZBDeployer

public class EasyBeansDeployer
extends AbsDeployer
implements EZBDeployer

Implementation of the Deployer for EasyBeans in standalone mode (or default mode). It can deploy EJB-JAR or EAR deployable

Author:
Florent Benoit

Field Summary
private static JLog logger
          Logger.
 
Fields inherited from class org.objectweb.easybeans.deployer.AbsDeployer
DEFAULT_FOLDER
 
Constructor Summary
EasyBeansDeployer()
           
 
Method Summary
private  void checkSupportedDeployable(EZBDeployable deployable)
          Check that the given deployable is supported by this deployer.
 void deploy(EZBDeployable deployable)
          Deploy a deployable.
protected  void deployEAR(EARDeployable earDeployable)
          Deploy an EAR (called by the deploy method).
 void undeploy(EZBDeployable deployable)
          Undeploy the given deployable.
 
Methods inherited from class org.objectweb.easybeans.deployer.AbsDeployer
deployEJB, getClassLoaderForEAR, getEmbedded, getMethod, getPersistenceUnitManager, invoke, loadClass, loadClass, newInstance, newInstance, setEmbedded, undeployEJB3FromEAR, unpackEARDeployable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.easybeans.deployer.api.EZBDeployer
setEmbedded
 

Field Detail

logger

private static JLog logger
Logger.

Constructor Detail

EasyBeansDeployer

public EasyBeansDeployer()
Method Detail

deploy

public void deploy(EZBDeployable deployable)
            throws EZBDeployerException
Deploy a deployable. It can be an EJB jar, EAR, WAR, etc.

Specified by:
deploy in interface EZBDeployer
Parameters:
deployable - a given deployable
Throws:
EZBDeployerException - if the deployment is not done.

undeploy

public void undeploy(EZBDeployable deployable)
              throws EZBDeployerException
Undeploy the given deployable. It can be an EJB jar, EAR, WAR, etc.

Specified by:
undeploy in interface EZBDeployer
Parameters:
deployable - a given deployable to undeploy
Throws:
EZBDeployerException - if the undeploy operation fails.

deployEAR

protected void deployEAR(EARDeployable earDeployable)
                  throws EZBDeployerException
Deploy an EAR (called by the deploy method).

Parameters:
earDeployable - a given EAR deployable
Throws:
EZBDeployerException - if the deployment is not done.

checkSupportedDeployable

private void checkSupportedDeployable(EZBDeployable deployable)
                               throws EZBDeployerException
Check that the given deployable is supported by this deployer. If it is not supported, throw an error.

Parameters:
deployable - the deployable that needs to be deployed
Throws:
EZBDeployerException - if this deployable is not supported.