org.ow2.ishmael.deploymentplan
Class JonasPlan

java.lang.Object
  extended by org.ow2.ishmael.deploymentplan.JonasPlan

public class JonasPlan
extends java.lang.Object

Author:
Florent Benoit

Nested Class Summary
 class JonasPlan.Entry
           
 
Constructor Summary
JonasPlan()
          Constructor.
 
Method Summary
 void createPlan(java.io.File file)
          createPlan : extract information from the JonAS deployment plan
 void dumpMap()
          dumpMap : for debuuging purpose
 java.lang.String getArchiveName()
           
 java.util.List<org.ow2.util.ee.deploy.impl.helper.DeployableEntry> getDeployableEntries(java.lang.String key)
           
 java.io.File getFile()
           
 void setArchiveName(java.lang.String archiveName)
          Set the host element of this object
 void setFile(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JonasPlan

public JonasPlan()
Constructor.

Method Detail

createPlan

public void createPlan(java.io.File file)
                throws java.lang.Exception
createPlan : extract information from the JonAS deployment plan

Parameters:
file - archive to read a JOnAS deployment plan is a jar file that contains: - a jonas-deployment-plan.xml with the name of the archive (temporary?) - one entry for each deployment descriptor to inject in the archive to update - the entry name has the following syntax : _. with dir = meta-inf or web-inf archivename = xx.jar/xx.war/xx.ear/xx.rar (sub archive name) descriptorname = xx.xml
Throws:
java.lang.Exception

dumpMap

public void dumpMap()
dumpMap : for debuuging purpose


setArchiveName

public void setArchiveName(java.lang.String archiveName)
Set the host element of this object

Parameters:
host - host element of this object

getArchiveName

public java.lang.String getArchiveName()
Returns:
the archiveName element

getFile

public java.io.File getFile()
Returns:
the file

setFile

public void setFile(java.io.File file)
Parameters:
file - the file to set

getDeployableEntries

public java.util.List<org.ow2.util.ee.deploy.impl.helper.DeployableEntry> getDeployableEntries(java.lang.String key)
Parameters:
key - key in the Map
Returns:
a list of DeployableEntry


Copyright ? 2007-2009 OW2 Consortium. All Rights Reserved.