org.ow2.easybeans.deployer.web.jetty
Class Jetty7Deployer

java.lang.Object
  extended by org.ow2.util.ee.deploy.impl.deployer.AbsDeployerList<T>
      extended by org.ow2.easybeans.deployer.AbsDeployer<T>
          extended by org.ow2.easybeans.deployer.AbsWebContainerDeployer
              extended by org.ow2.easybeans.deployer.web.jetty.Jetty7Deployer
All Implemented Interfaces:
org.ow2.util.ee.deploy.api.deployer.IDeployer

public class Jetty7Deployer
extends AbsWebContainerDeployer
implements org.ow2.util.ee.deploy.api.deployer.IDeployer

Deployer used when EasyBeans is embedded in Jetty 7.x.

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.ow2.easybeans.deployer.AbsDeployer
DEFAULT_FOLDER
 
Constructor Summary
Jetty7Deployer(javax.servlet.ServletContextEvent servletContextEvent)
          Build a new instance of this deployer.
 
Method Summary
protected  void deployWARs(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable, URL earURL, ClassLoader earClassLoader, ClassLoader parentClassLoader, EZBInjectionHolder ejbInjectionHolder)
          Deploy the WAR files present in the given EAR.
protected  void undeployWAR(org.ow2.util.ee.deploy.api.deployable.WARDeployable warDeployable)
          Undeploy an given WAR (called by the undeploy method).
 
Methods inherited from class org.ow2.easybeans.deployer.AbsWebContainerDeployer
deploy, deployEAR, undeploy, undeployEAR, unpack
 
Methods inherited from class org.ow2.easybeans.deployer.AbsDeployer
deployEJB, getClassLoaderForEAR, getDeployedDeployable, getEmbedded, getLibArchives, getMethod, getPersistenceUnitManager, invoke, isDeployed, loadClass, loadClass, newInstance, newInstance, setDeployed, setEmbedded, supports, undeployEJB3FromEAR, unpackEARDeployable, unsetDeployed
 
Methods inherited from class org.ow2.util.ee.deploy.impl.deployer.AbsDeployerList
deploy, supports, undeploy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.util.ee.deploy.api.deployer.IDeployer
deploy, deploy, isDeployed, supports, supports, undeploy, undeploy
 

Constructor Detail

Jetty7Deployer

public Jetty7Deployer(javax.servlet.ServletContextEvent servletContextEvent)
               throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Build a new instance of this deployer.

Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the instance is not built.
Method Detail

deployWARs

protected void deployWARs(org.ow2.util.ee.deploy.api.deployable.EARDeployable earDeployable,
                          URL earURL,
                          ClassLoader earClassLoader,
                          ClassLoader parentClassLoader,
                          EZBInjectionHolder ejbInjectionHolder)
                   throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Deploy the WAR files present in the given EAR.

Specified by:
deployWARs in class AbsWebContainerDeployer
Parameters:
earDeployable - the EAR containing the WARs
earURL - the EAR URL
earClassLoader - the EAR classloader
parentClassLoader - the parent classloader (EJB) to use
ejbInjectionHolder - the EasyBeans injection holder object
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the wars are not deployed.

undeployWAR

protected void undeployWAR(org.ow2.util.ee.deploy.api.deployable.WARDeployable warDeployable)
                    throws org.ow2.util.ee.deploy.api.deployer.DeployerException
Undeploy an given WAR (called by the undeploy method).

Specified by:
undeployWAR in class AbsWebContainerDeployer
Parameters:
warDeployable - a given WAR deployable
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the undeployment is not done.


Copyright © 2006-2012 OW2 Consortium. All Rights Reserved.