org.ow2.jonas.generators.genclientstub.modifier
Class ModifierFactory

java.lang.Object
  extended by org.ow2.jonas.generators.genbase.modifier.AbsModifierFactory
      extended by org.ow2.jonas.generators.genclientstub.modifier.ModifierFactory

public class ModifierFactory
extends org.ow2.jonas.generators.genbase.modifier.AbsModifierFactory

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

Author:
Guillaume Sauthier

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

Method Detail

getModifier

public static org.ow2.jonas.generators.genbase.modifier.ArchiveModifier getModifier(String filename)
                                                                             throws org.ow2.jonas.generators.genbase.GenBaseException
Returns an ArchiveModifier according to archive type (application, ejbjar, webapp or client).

Parameters:
filename - input filename.
Returns:
an ArchiveModifier.
Throws:
org.ow2.jonas.generators.genbase.GenBaseException - when archive creation fails.


Copyright © 2007 OW2 Consortium. All Rights Reserved.