org.objectweb.jonas_ws.wsgen.modifier
Class ArchiveModifier

java.lang.Object
  extended byorg.objectweb.jonas_ws.wsgen.modifier.ArchiveModifier
Direct Known Subclasses:
ApplicationModifier, ClientModifier, EjbJarModifier, WebAppModifier

public abstract class ArchiveModifier
extends java.lang.Object

Modify a J2EEArchive

Author:
Guillaume Sauthier

Field Summary
protected static org.objectweb.util.monolog.api.Logger logger
          logger
 
Constructor Summary
ArchiveModifier(J2EEArchive archive)
          Creates a new ArchiveModifier object.
 
Method Summary
abstract  Archive modify()
          Modify the current archive and return a modified archive.
protected  Archive save(Generator.Config config, java.lang.String outname)
          Save the curernt archive usin given configuration and given out filename.
protected static Archive save(Generator.Config config, java.lang.String outname, J2EEArchive archive)
          Save the curernt archive usin given configuration and given out filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.objectweb.util.monolog.api.Logger logger
logger

Constructor Detail

ArchiveModifier

public ArchiveModifier(J2EEArchive archive)
Creates a new ArchiveModifier object.

Parameters:
archive - rchive to be modified
Method Detail

modify

public abstract Archive modify()
                        throws WsGenException
Modify the current archive and return a modified archive.

Returns:
a modified archive.
Throws:
WsGenException

save

protected static Archive save(Generator.Config config,
                              java.lang.String outname,
                              J2EEArchive archive)
                       throws WsGenException
Save the curernt archive usin given configuration and given out filename.

Parameters:
config - configuration to use
outname - filename
archive - archive to be saved
Returns:
the save Archive
Throws:
WsGenException - is save fails.

save

protected Archive save(Generator.Config config,
                       java.lang.String outname)
                throws WsGenException
Save the curernt archive usin given configuration and given out filename.

Parameters:
config - configuration to use
outname - filename
Returns:
the save Archive
Throws:
WsGenException - is save fails.