org.objectweb.easybeans.deployer
Class EasyBeansDeployer
java.lang.Object
org.objectweb.easybeans.deployer.AbsDeployer
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
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 |
logger
private static JLog logger
- Logger.
EasyBeansDeployer
public EasyBeansDeployer()
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.