org.objectweb.jonas_ws.wsgen.modifier
Class ModifierFactory

java.lang.Object
  extended by org.objectweb.jonas_lib.genbase.modifier.AbsModifierFactory
      extended by org.objectweb.jonas_ws.wsgen.modifier.ModifierFactory

public class ModifierFactory
extends AbsModifierFactory

Used to create the right ArchiveModifier from a given filename (ear, jar, war, ...)

Author:
Guillaume Sauthier

Field Summary
 
Fields inherited from class org.objectweb.jonas_lib.genbase.modifier.AbsModifierFactory
APPLICATION, CLIENT, EJBJAR, WEBAPP
 
Method Summary
static ArchiveModifier getModifier(java.lang.String filename)
          Returns an ArchiveModifier according to archive type (application, ejbjar, webapp or client).
static ArchiveModifier getModifier(java.lang.String filename, boolean init)
          Returns an ArchiveModifier according to archive type (application, ejbjar, webapp or client).
 
Methods inherited from class org.objectweb.jonas_lib.genbase.modifier.AbsModifierFactory
isApplication, isApplication, isClient, isClient, isEjbJar, isEjbJar, isWebApp, isWebApp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getModifier

public static ArchiveModifier getModifier(java.lang.String filename)
                                   throws GenBaseException
Returns an ArchiveModifier according to archive type (application, ejbjar, webapp or client).

Parameters:
filename - input filename.
Returns:
an ArchiveModifier.
Throws:
GenBaseException - when archive creation fails.

getModifier

public static ArchiveModifier getModifier(java.lang.String filename,
                                          boolean init)
                                   throws GenBaseException
Returns an ArchiveModifier according to archive type (application, ejbjar, webapp or client).

Parameters:
filename - input filename.
init - Initialize the archive.
Returns:
an ArchiveModifier.
Throws:
GenBaseException - when archive creation fails.