org.ow2.jonas.generators.genclientstub.modifier
Class AbsArchiveModifier

java.lang.Object
  extended by org.ow2.jonas.generators.genbase.modifier.ArchiveModifier
      extended by org.ow2.jonas.generators.genclientstub.modifier.AbsArchiveModifier
Direct Known Subclasses:
ClientModifier, EjbJarModifier, WebAppModifier

public abstract class AbsArchiveModifier
extends ArchiveModifier

Defines common methods used by all modifier


Constructor Summary
AbsArchiveModifier(J2EEArchive archive)
          Constructor
 
Method Summary
protected  void generateFoundStubs(Config config, Archive archive)
          Generates stub/tie classes for a given archive with its config
abstract  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

AbsArchiveModifier

public AbsArchiveModifier(J2EEArchive archive)
Constructor

Parameters:
archive - the j2ee archive
Method Detail

modify

public abstract 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 Client Generation or storing phase fails.

generateFoundStubs

protected void generateFoundStubs(Config config,
                                  Archive archive)
                           throws ClientStubGenException
Generates stub/tie classes for a given archive with its config

Parameters:
config - configuration to use for the generator
archive - the file containing the remote class
Throws:
ClientStubGenException - if the generation fails


Copyright © 2010 OW2 Consortium. All Rights Reserved.