org.ow2.jonas.web.base
Class WARDeployer

java.lang.Object
  extended by org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
      extended by org.ow2.jonas.web.base.WARDeployer
All Implemented Interfaces:
org.ow2.util.ee.deploy.api.deployer.IDeployer

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

Deployer of the WAR deployable.

Author:
Florent BENOIT

Field Summary
 
Fields inherited from class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
deployedDeployables
 
Constructor Summary
WARDeployer()
           
 
Method Summary
 void doDeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Deploy the given WAR.
 void doUndeploy(org.ow2.util.ee.deploy.api.deployable.IDeployable<?> deployable)
          Undeploy the given WAR.
 HttpOnDemandProxy getOnDemandProxy()
           
 void setOnDemandProxy(HttpOnDemandProxy onDemandProxy)
          Sets the OnDemand proxy to use.
 void setWebContainerService(JWebContainerService webContainerService)
          Sets the WEB container 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

WARDeployer

public WARDeployer()
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 WAR.

Specified by:
doDeploy in class org.ow2.util.ee.deploy.impl.deployer.AbsDeployer
Parameters:
deployable - the deployable to add.
Throws:
org.ow2.util.ee.deploy.api.deployer.DeployerException - if the WAR 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 WAR.

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 WAR is not undeployed.

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.

setWebContainerService

public void setWebContainerService(JWebContainerService webContainerService)
Sets the WEB container service.

Parameters:
webContainerService - the web container service.

getOnDemandProxy

public HttpOnDemandProxy getOnDemandProxy()
Returns:
the OnDemand proxy.

setOnDemandProxy

public void setOnDemandProxy(HttpOnDemandProxy onDemandProxy)
Sets the OnDemand proxy to use.

Parameters:
onDemandProxy - the proxy to use


Copyright © 2010 OW2 Consortium. All Rights Reserved.