org.objectweb.jonas_ws.wsgen
Class EarManager

java.lang.Object
  extended byorg.objectweb.jonas_ws.wsgen.JarManager
      extended byorg.objectweb.jonas_ws.wsgen.EarManager

public class EarManager
extends JarManager

Use xml classes to get and write informations inside an ear file.


Field Summary
 
Fields inherited from class org.objectweb.jonas_ws.wsgen.JarManager
jarEntries, jarFileName, jos, logger, tempJar, tjEntries
 
Constructor Summary
EarManager(java.lang.String earFilename)
          Build a new instance of a EarManager.
 
Method Summary
 void addEjbjar(java.lang.String ejbjarFileName)
          Add a new EjbJar in the current ear file.
 void addWar(java.lang.String warFileName)
          Add a new War in the current ear file.
protected  void save()
          add all jar entries in the jar file.
 
Methods inherited from class org.objectweb.jonas_ws.wsgen.JarManager
addDir, addDir, addFile, close, getSAXMsg, isNewFile, open, writeEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EarManager

public EarManager(java.lang.String earFilename)
           throws WsGenException
Build a new instance of a EarManager.

Parameters:
earFilename - the name of the ear file that we want to manage.
Throws:
WsGenException - if the ear file doesn't exist.
Method Detail

addWar

public void addWar(java.lang.String warFileName)
            throws WsGenException
Add a new War in the current ear file.

Throws:
WsGenException

addEjbjar

public void addEjbjar(java.lang.String ejbjarFileName)
               throws WsGenException
Add a new EjbJar in the current ear file.

Throws:
WsGenException

save

protected void save()
             throws WsGenException
Description copied from class: JarManager
add all jar entries in the jar file.

Overrides:
save in class JarManager
Throws:
WsGenException