org.ow2.util.ee.deploy.impl.deployable
Class WARDeployableImpl

java.lang.Object
  extended by org.ow2.util.ee.deploy.impl.deployable.AbsDeployable<org.ow2.util.ee.deploy.api.deployable.WARDeployable>
      extended by org.ow2.util.ee.deploy.impl.deployable.WARDeployableImpl
All Implemented Interfaces:
org.ow2.util.ee.deploy.api.deployable.IDeployable<org.ow2.util.ee.deploy.api.deployable.WARDeployable>, org.ow2.util.ee.deploy.api.deployable.WARDeployable

public class WARDeployableImpl
extends AbsDeployable<org.ow2.util.ee.deploy.api.deployable.WARDeployable>
implements org.ow2.util.ee.deploy.api.deployable.WARDeployable

Implementation for a WAR.

Author:
Florent Benoit

Constructor Summary
WARDeployableImpl(org.ow2.util.archive.api.IArchive archive)
          Defines and create a deployable for the given archive.
 
Method Summary
 String getContextRoot()
           
 void setContextRoot(String contextRoot)
          Defines the name of the context-root.
 
Methods inherited from class org.ow2.util.ee.deploy.impl.deployable.AbsDeployable
addExtension, equals, getArchive, getExtension, getModuleName, getOriginalDeployable, getShortName, getUnpackedDeployable, setOriginalDeployable, setUnpackedDeployable, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.util.ee.deploy.api.deployable.IDeployable
addExtension, getArchive, getExtension, getModuleName, getOriginalDeployable, getShortName, getUnpackedDeployable, setOriginalDeployable, setUnpackedDeployable
 

Constructor Detail

WARDeployableImpl

public WARDeployableImpl(org.ow2.util.archive.api.IArchive archive)
Defines and create a deployable for the given archive.

Parameters:
archive - the given archive.
Method Detail

getContextRoot

public String getContextRoot()
Specified by:
getContextRoot in interface org.ow2.util.ee.deploy.api.deployable.WARDeployable
Returns:
the list of the context root for this deployable.
Note: It can be the context-root defined at the EAR level.

setContextRoot

public void setContextRoot(String contextRoot)
Defines the name of the context-root.

Specified by:
setContextRoot in interface org.ow2.util.ee.deploy.api.deployable.WARDeployable
Parameters:
contextRoot - the given context-root for this war file


Copyright © 2007-2011 OW2 Consortium. All Rights Reserved.