org.objectweb.jonas_lib.genbase.archive
Class DummyApplication

java.lang.Object
  extended by org.objectweb.jonas_lib.genbase.archive.J2EEArchive
      extended by org.objectweb.jonas_lib.genbase.archive.Application
          extended by org.objectweb.jonas_lib.genbase.archive.DummyApplication
All Implemented Interfaces:
Archive

public class DummyApplication
extends Application

DummyApplication is a wrapper for auto generated application archive.

Author:
Guillaume Sauthier

Constructor Summary
DummyApplication(java.lang.String name)
          Creates a new Application archive.
 
Method Summary
 java.lang.String getName()
          Returns the name of the Archive.
protected  void init()
          Initialize the DummyApplication.
 
Methods inherited from class org.objectweb.jonas_lib.genbase.archive.Application
addClient, addEjbJar, addWebApp, close, getApp, getApplicationDoc, getApplicationInputStream, getClients, getDescriptors, getEARClassLoader, getEJBClassLoader, getEjbJars, getWebApps, initialize, loadDescriptors, omit, setClients, setEjbjars, setWebapps
 
Methods inherited from class org.objectweb.jonas_lib.genbase.archive.J2EEArchive
addDirectory, addDirectoryIn, addFile, addFile, addFileIn, getArchive, getContainedFiles, getI18n, getInputStream, getLogger, getManifest, getModuleClassloader, getRootFile, isDTDsAllowed, isPacked, setArchive, setModuleClassloader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyApplication

public DummyApplication(java.lang.String name)
                 throws GenBaseException
Creates a new Application archive.

Parameters:
name - the file containing the application archive.
Throws:
GenBaseException - When Init fails
Method Detail

init

protected void init()
             throws GenBaseException
Initialize the DummyApplication. Creates modules lists. Overriddes Application.init() behavior

Overrides:
init in class Application
Throws:
GenBaseException - When Descriptor cannot be parsed.

getName

public java.lang.String getName()
Description copied from class: Application
Returns the name of the Archive. Overrides J2EEArchive.getName();

Specified by:
getName in interface Archive
Overrides:
getName in class Application
Returns:
Returns the DummyApplication filename.
See Also:
J2EEArchive.getName()