org.ow2.jonas.generators.genbase.archive
Class DummyApplication
java.lang.Object
org.ow2.jonas.generators.genbase.archive.J2EEArchive
org.ow2.jonas.generators.genbase.archive.Application
org.ow2.jonas.generators.genbase.archive.DummyApplication
- All Implemented Interfaces:
- Archive
public class DummyApplication
- extends Application
DummyApplication is a wrapper for auto generated application archive.
- Author:
- Guillaume Sauthier
Method Summary |
String |
getName()
Returns the name of the Archive. |
protected void |
init()
Initialize the DummyApplication. |
Methods inherited from class org.ow2.jonas.generators.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.ow2.jonas.generators.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 |
DummyApplication
public DummyApplication(String name)
throws GenBaseException
- Creates a new Application archive.
- Parameters:
name
- the file containing the application archive.
- Throws:
GenBaseException
- When Init fails
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 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()
Copyright © 2010 OW2 Consortium. All Rights Reserved.