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 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 ArchiveModifier getModifier(String filename)
          Returns an ArchiveModifier according to archive type (application, ejbjar, webapp or client).
static ArchiveModifier getModifier(String filename, boolean init, org.ow2.util.ee.deploy.api.deployable.IDeployable deployable)
          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 ArchiveModifier getModifier(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(String filename,
                                          boolean init,
                                          org.ow2.util.ee.deploy.api.deployable.IDeployable deployable)
                                   throws GenBaseException
Returns an ArchiveModifier according to archive type (application, ejbjar, webapp or client).

Parameters:
filename - input filename.
init - Initialize the archive.
deployable - the current deployable (can be null)
Returns:
an ArchiveModifier.
Throws:
GenBaseException - when archive creation fails.


Copyright © 2010 OW2 Consortium. All Rights Reserved.