org.objectweb.jonas_ws.wsgen.jarfile
Class EarManager

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

public class EarManager
extends JarManager

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

Author:
Guillaume Sauthier

Field Summary
 
Fields inherited from class org.objectweb.jonas_ws.wsgen.jarfile.JarManager
filename, logger, newEntries, outDir
 
Constructor Summary
EarManager(java.lang.String earFilename)
          Build a new instance of a EarManager.
EarManager(java.lang.String earFilename, java.lang.String dir)
          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  boolean omit(java.lang.String name)
          Omit application.xml file
 
Methods inherited from class org.objectweb.jonas_ws.wsgen.jarfile.JarManager
addDir, addDir, addDir, addFile, addXml, close, finalize, getFilename, getOutFilename, getSAXMsg, isNewFile, save, setOutputDir, writeEntry
 
Methods inherited from class java.lang.Object
clone, equals, 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 - when instanciation fails.

EarManager

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

Parameters:
earFilename - the name of the ear file that we want to manage.
dir - output directory
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.

Parameters:
warFileName - the new war file name.
Throws:
WsGenException

addEjbjar

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

Parameters:
ejbjarFileName - the new ejbjar file name.
Throws:
WsGenException

omit

protected boolean omit(java.lang.String name)
Omit application.xml file

Overrides:
omit in class JarManager
Parameters:
name - name of entry to be tested
Returns:
true if file must be omitted, otherwise false