org.objectweb.jonas_lib.genbase.archive.Application Class Reference

Inherits org.objectweb.jonas_lib.genbase.archive.J2EEArchive.

Inherited by org.objectweb.jonas_lib.genbase.archive.DummyApplication.

Inheritance diagram for org.objectweb.jonas_lib.genbase.archive.Application:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_lib.genbase.archive.Application:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Application (Archive archive) throws GenBaseException
void initialize () throws GenBaseException
String getName ()
Document getApplicationDoc ()
InputStream getApplicationInputStream () throws IOException
void addEjbJar (EjbJar ejbjar)
void addClient (Client client)
void addWebApp (WebApp webapp, String context)
Iterator getEjbJars ()
Iterator getWebApps ()
Iterator getClients ()
URLClassLoader getEARClassLoader ()
URLClassLoader getEJBClassLoader ()
Map getDescriptors ()
boolean omit (String name)
void setClients (List clients)
void setEjbjars (List ejbjars)
void setWebapps (List webapps)
Document getApp ()

Protected Member Functions

void init () throws GenBaseException
void loadDescriptors () throws GenBaseException

Detailed Description

Application is a wrapper around an ear (packaged as a jar or as an unpacked jar).

Author:
Guillaume Sauthier

Definition at line 65 of file Application.java.


Constructor & Destructor Documentation

org.objectweb.jonas_lib.genbase.archive.Application.Application Archive  archive  )  throws GenBaseException
 

Creates a new Application archive.

Parameters:
archive the file containing the application archive.
Exceptions:
GenBaseException When Init fails

Definition at line 104 of file Application.java.

References org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getLogger(), and org.objectweb.jonas_lib.genbase.archive.Application.init().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas_lib.genbase.archive.Application.addClient Client  client  ) 
 

Add a new Client in the Application.

Parameters:
client the added Client

Definition at line 423 of file Application.java.

void org.objectweb.jonas_lib.genbase.archive.Application.addEjbJar EjbJar  ejbjar  ) 
 

Add a new EjbJar in the Application.

Parameters:
ejbjar the added EjbJar

Definition at line 412 of file Application.java.

Referenced by org.objectweb.jonas_ws.wsgen.modifier.EjbJarModifier.modify().

void org.objectweb.jonas_lib.genbase.archive.Application.addWebApp WebApp  webapp,
String  context
 

Add a new WebApp in the Application.

Parameters:
webapp the added webapp
context context of the webapp

Definition at line 435 of file Application.java.

References org.objectweb.jonas_lib.genbase.archive.J2EEArchive.addFile(), org.objectweb.jonas_lib.genbase.archive.WebApp.getName(), and org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getRootFile().

Referenced by org.objectweb.jonas_ws.wsgen.modifier.EjbJarModifier.modify().

Here is the call graph for this function:

Document org.objectweb.jonas_lib.genbase.archive.Application.getApp  ) 
 

Returns:
Returns the app.

Definition at line 532 of file Application.java.

Referenced by org.objectweb.jonas_lib.genbase.archive.DummyApplication.init().

Document org.objectweb.jonas_lib.genbase.archive.Application.getApplicationDoc  ) 
 

Returns the Document of the application.xml file.

Returns:
the Document of the application.xml file.

Definition at line 383 of file Application.java.

InputStream org.objectweb.jonas_lib.genbase.archive.Application.getApplicationInputStream  )  throws IOException
 

Returns the InputStream of the application.xml file.

Returns:
the InputStream of the application.xml file.
Exceptions:
IOException When InputStream of application.xml cannot be returned

Definition at line 395 of file Application.java.

References org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getInputStream(), and org.objectweb.jonas_lib.genbase.archive.J2EEArchive.isPacked().

Referenced by org.objectweb.jonas_lib.genbase.archive.Application.loadDescriptors().

Here is the call graph for this function:

Iterator org.objectweb.jonas_lib.genbase.archive.Application.getClients  ) 
 

Returns the Iterator of WebApp contained in this Application.

Returns:
the Iterator of WebApp contained in this Application.

Definition at line 465 of file Application.java.

Map org.objectweb.jonas_lib.genbase.archive.Application.getDescriptors  )  [virtual]
 

Returns a Map of name to Document for each modified Descriptor of the archive.

Returns:
a Map of name to Document

Implements org.objectweb.jonas_lib.genbase.archive.J2EEArchive.

Definition at line 493 of file Application.java.

URLClassLoader org.objectweb.jonas_lib.genbase.archive.Application.getEARClassLoader  ) 
 

Returns the ClassLoader of this ear archive.

Returns:
the ClassLoader of this ear archive.

Definition at line 474 of file Application.java.

URLClassLoader org.objectweb.jonas_lib.genbase.archive.Application.getEJBClassLoader  ) 
 

Returns the ClassLoader of the ejbs within this archive.

Returns:
the ClassLoader of the ejbs within this archive.

Definition at line 483 of file Application.java.

Referenced by org.objectweb.jonas_lib.genbase.archive.WebApp.initialize(), org.objectweb.jonas_lib.genbase.archive.Client.initialize(), and org.objectweb.jonas_lib.genbase.archive.EjbJar.initialize().

Iterator org.objectweb.jonas_lib.genbase.archive.Application.getEjbJars  ) 
 

Returns the Iterator of EjbJar contained in this Application.

Returns:
the Iterator of EjbJar contained in this Application.

Definition at line 447 of file Application.java.

String org.objectweb.jonas_lib.genbase.archive.Application.getName  ) 
 

Returns the name of the Archive. Overrides J2EEArchive.getName();

See also:
org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getName()
Returns:
the name of the Archive.

Reimplemented from org.objectweb.jonas_lib.genbase.archive.J2EEArchive.

Reimplemented in org.objectweb.jonas_lib.genbase.archive.DummyApplication.

Definition at line 267 of file Application.java.

Referenced by org.objectweb.jonas_lib.genbase.modifier.AbsApplicationModifier.modify().

Iterator org.objectweb.jonas_lib.genbase.archive.Application.getWebApps  ) 
 

Returns the Iterator of WebApp contained in this Application.

Returns:
the Iterator of WebApp contained in this Application.

Definition at line 456 of file Application.java.

void org.objectweb.jonas_lib.genbase.archive.Application.init  )  throws GenBaseException [protected]
 

Initialize the Application. Creates modules lists, unpack if not unpacked.

Exceptions:
GenBaseException When application unpack fails or when Decriptors cannot be parsed or found.

Reimplemented in org.objectweb.jonas_lib.genbase.archive.DummyApplication.

Definition at line 118 of file Application.java.

References org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getArchive(), org.objectweb.jonas_ear.deployment.api.EarDeploymentDesc.getClientTags(), org.objectweb.jonas_ear.deployment.api.EarDeploymentDesc.getEjbTags(), org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getI18n(), org.objectweb.jonas_lib.I18n.getMessage(), org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getRootFile(), org.objectweb.jonas_ear.deployment.api.EarDeploymentDesc.getWebTags(), org.objectweb.jonas_lib.genbase.archive.J2EEArchive.isPacked(), org.objectweb.jonas_lib.genbase.archive.Application.loadDescriptors(), org.objectweb.jonas_lib.genbase.archive.J2EEArchive.setArchive(), and org.objectweb.jonas_lib.genbase.archive.J2EEArchive.setModuleClassloader().

Referenced by org.objectweb.jonas_lib.genbase.archive.Application.Application().

Here is the call graph for this function:

void org.objectweb.jonas_lib.genbase.archive.Application.initialize  )  throws GenBaseException [virtual]
 

Initialize the Archive.

Exceptions:
GenBaseException When initialization fails.

Implements org.objectweb.jonas_lib.genbase.archive.J2EEArchive.

Definition at line 238 of file Application.java.

References org.objectweb.jonas_lib.genbase.archive.Client.initialize(), org.objectweb.jonas_lib.genbase.archive.WebApp.initialize(), and org.objectweb.jonas_lib.genbase.archive.EjbJar.initialize().

Here is the call graph for this function:

void org.objectweb.jonas_lib.genbase.archive.Application.loadDescriptors  )  throws GenBaseException [protected]
 

Load Deployment Descriptor of an Application.

Exceptions:
GenBaseException When parsing of application.xml fails

Definition at line 216 of file Application.java.

References org.objectweb.jonas_lib.genbase.archive.Application.getApplicationInputStream(), org.objectweb.jonas_lib.genbase.archive.J2EEArchive.getI18n(), org.objectweb.jonas_lib.I18n.getMessage(), and org.objectweb.jonas_lib.genbase.archive.J2EEArchive.isDTDsAllowed().

Referenced by org.objectweb.jonas_lib.genbase.archive.DummyApplication.init(), and org.objectweb.jonas_lib.genbase.archive.Application.init().

Here is the call graph for this function:

boolean org.objectweb.jonas_lib.genbase.archive.Application.omit String  name  )  [virtual]
 

Returns true if filename must be omitted in the archive.

Parameters:
name filename to be tested
Returns:
true if filename must be omitted.

Implements org.objectweb.jonas_lib.genbase.archive.J2EEArchive.

Definition at line 504 of file Application.java.

void org.objectweb.jonas_lib.genbase.archive.Application.setClients List  clients  ) 
 

Parameters:
clients The clients to set.

Definition at line 511 of file Application.java.

Referenced by org.objectweb.jonas_lib.genbase.archive.DummyApplication.init().

void org.objectweb.jonas_lib.genbase.archive.Application.setEjbjars List  ejbjars  ) 
 

Parameters:
ejbjars The ejbjars to set.

Definition at line 518 of file Application.java.

Referenced by org.objectweb.jonas_lib.genbase.archive.DummyApplication.init().

void org.objectweb.jonas_lib.genbase.archive.Application.setWebapps List  webapps  ) 
 

Parameters:
webapps The webapps to set.

Definition at line 525 of file Application.java.

Referenced by org.objectweb.jonas_lib.genbase.archive.DummyApplication.init().


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:12:47 2005 for JOnAS by  doxygen 1.3.9.1