org.ow2.jonas.generators.genbase.modifier
Class AbsApplicationModifier

java.lang.Object
  extended by org.ow2.jonas.generators.genbase.modifier.ArchiveModifier
      extended by org.ow2.jonas.generators.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  List getCltModifiers()
           
protected  List getEjbModifiers()
           
protected  List getWebModifiers()
           
protected abstract  void init()
          initialize modifier
 Archive modify()
          Modify the current archive and return a modified archive.
 
Methods inherited from class org.ow2.jonas.generators.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 List getCltModifiers()
Returns:
the cltModifiers.

getEjbModifiers

protected List getEjbModifiers()
Returns:
the ejbModifiers.

getWebModifiers

protected List getWebModifiers()
Returns:
the webModifiers.

getApplication

protected Application getApplication()
Returns:
the application element.


Copyright © 2010 OW2 Consortium. All Rights Reserved.