org.ow2.jonas.ejb.easybeans
Class EasyBeansDeployer

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

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

This deployer will deploy EJB3 on EasyBeans.

Author:
Florent BENOIT Contributors: S. Ali Tokmen (versioning)

Field Summary
 
Fields inherited from class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
deployedDeployables
 
Constructor Summary
EasyBeansDeployer()
          Build a new instance of the EasyBeans deployer.
 
Method Summary
 void doDeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy the given deployable.
 void doUndeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Undeploy the given EJB3.
 Map<URL,org.ow2.util.ee.deploy.api.deployable.EJB3Deployable> getEJB3s()
          Returns a Map containing all deployed EJB3s.
 ServerProperties getServerProperties()
          Returns the server properties.
 VersioningService getVersioningService()
           
 void setAppsClassLoader(ClassLoader appsClassLoader)
          Sets the classloader to use for all deployed applications.
 void setDeployerLog(DeployerLog deployerLog)
          Set the DeployerLog of the EasyBeansDeployer.
 void setEmbedded(org.ow2.easybeans.server.Embedded easybeansServer)
          Sets the EasyBeans embedded instance.
 void setServerProperties(ServerProperties serverProperties)
          Set the server properties.
 void setVersioningService(VersioningService versioningService)
           
 boolean supports(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Checks if the given deployable is supported by the Deployer.
 void unsetVersioningService()
          Sets the versioning service to null.
 
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

EasyBeansDeployer

public EasyBeansDeployer()
Build a new instance of the EasyBeans deployer.

Method Detail

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 deployable.

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

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 EJB3.

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 EJB3 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.

getEJB3s

public Map<URL,org.ow2.util.ee.deploy.api.deployable.EJB3Deployable> getEJB3s()
Returns a Map containing all deployed EJB3s.

Returns:
a Map containing all deployed EJB3s.

setEmbedded

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

Parameters:
easybeansServer - the EasyBeans instance.

getServerProperties

public ServerProperties getServerProperties()
Returns the server properties.

Returns:
the server properties

setServerProperties

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

Parameters:
serverProperties - the given server properties

setVersioningService

public void setVersioningService(VersioningService versioningService)
Parameters:
versioningService - The versioning service to set.

unsetVersioningService

public void unsetVersioningService()
Sets the versioning service to null.


getVersioningService

public VersioningService getVersioningService()
Returns:
The versioning service.

setDeployerLog

public void setDeployerLog(DeployerLog deployerLog)
Set the DeployerLog of the EasyBeansDeployer.

Parameters:
deployerLog - the DeployerLog to use

setAppsClassLoader

public void setAppsClassLoader(ClassLoader appsClassLoader)
Sets the classloader to use for all deployed applications.

Parameters:
appsClassLoader - the given classloader.


Copyright © 2010 OW2 Consortium. All Rights Reserved.