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

Constructor Summary
ArchiveModifier(J2EEArchive archive)
          Creates a new ArchiveModifier object.
 
Method Summary
static org.objectweb.util.monolog.api.Logger getLogger()
           
abstract  Archive modify()
          Modify the current archive and return a modified archive.
protected  Archive save(Config config, java.lang.String outname)
          Save the curernt archive usin given configuration and given out filename.
protected static Archive save(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
 

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 - When Archive modification fails

save

protected static Archive save(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(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.

getLogger

public static org.objectweb.util.monolog.api.Logger getLogger()
Returns:
Returns the logger.