org.objectweb.jonas_lib.genbase.modifier
Class AbsApplicationModifier

java.lang.Object
  extended byorg.objectweb.jonas_lib.genbase.modifier.ArchiveModifier
      extended byorg.objectweb.jonas_lib.genbase.modifier.AbsApplicationModifier
Direct Known Subclasses:
ApplicationModifier, ApplicationModifier

public abstract class AbsApplicationModifier
extends ArchiveModifier

Modify a given Application.

Author:
Guillaume Sauthier, Florent Benoit

Constructor Summary
AbsApplicationModifier(Application archive, Config config)
          Creates a new ApplicationModifier.
 
Method Summary
protected  Application getApplication()
           
protected  java.util.List getCltModifiers()
           
protected  java.util.List getEjbModifiers()
           
protected  java.util.List getWebModifiers()
           
protected abstract  void init()
          initialize modifier
 Archive modify()
          Modify the current archive and return a modified archive.
 
Methods inherited from class org.objectweb.jonas_lib.genbase.modifier.ArchiveModifier
getArchive, getLogger, save, save
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsApplicationModifier

public AbsApplicationModifier(Application archive,
                              Config config)
Creates a new ApplicationModifier.

Parameters:
archive - the Application J2EE archive
config - the configuration object
Method Detail

init

protected abstract void init()
initialize modifier


modify

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

Specified by:
modify in class ArchiveModifier
Returns:
a modified archive.
Throws:
GenBaseException - When modifications fails

getCltModifiers

protected java.util.List getCltModifiers()
Returns:
the cltModifiers.

getEjbModifiers

protected java.util.List getEjbModifiers()
Returns:
the ejbModifiers.

getWebModifiers

protected java.util.List getWebModifiers()
Returns:
the webModifiers.

getApplication

protected Application getApplication()
Returns:
the application element.