org.ow2.jonas.generators.wsgen.modifier
Class ModifierFactory
java.lang.Object
org.ow2.jonas.generators.genbase.modifier.AbsModifierFactory
org.ow2.jonas.generators.wsgen.modifier.ModifierFactory
public class ModifierFactory
- extends AbsModifierFactory
Used to create the right ArchiveModifier from a given filename (ear, jar,
war, ...
- Author:
- Guillaume Sauthier
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 |
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.