org.ow2.jonas.ejb2.internal
Class EJB21Deployer

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

public class EJB21Deployer
extends org.ow2.util.ee.deploy.impl.deployer.AbsDeployer

Deployer of the EJB 2.1 deployable.

Author:
Florent BENOIT

Field Summary
 
Fields inherited from class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
deployedDeployables
 
Constructor Summary
EJB21Deployer()
           
 
Method Summary
 void doDeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy the given EJB-JAR.
 void doUndeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Undeploy the given EJB-JAR.
 void setEjb21Service(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.
 
Methods inherited from class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
check, deploy, getDeployedDeployables, getFile, getURL, isDeployed, stop, undeploy
 
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

doUndeploy

public void doUndeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
                throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Undeploy the given EJB-JAR.

Specified by:
doUndeploy in class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
Parameters:
deployable - the deployable to remove.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EJB-JAR is not undeployed.

doDeploy

public void doDeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
              throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy the given EJB-JAR.

Specified by:
doDeploy in class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
Parameters:
ejbJarDeployable - the deployable to add.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the EJB-JAR is not deployed.

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
Specified by:
supports in class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
Parameters:
deployable - the deployable to be checked
Returns:
true if it is supported, else false.

setEjb21Service

public void setEjb21Service(EJBService ejb21Service)
Sets the EJB 2.1 service.

Parameters:
ejb21Service - the EJB 2.1 service.


Copyright © 2011 OW2 Consortium. All Rights Reserved.