org.objectweb.jonas.ear.lib.JarList Class Reference

List of all members.

Public Member Functions

 JarList ()
 JarList (StringTokenizer st)
 JarList (String[] strs)
 JarList (Web[] wars)
void add (String fileName)
URL[] getURLs (String dirName) throws JarListException
void merge (JarList jarList)
void remove (JarList jarList)
void setRelativePath (String path)

Detailed Description

JOnAS Jar list This class provides a way for managing the class-path dependency libraries.
Author:
Florent Benoit

Ludovic Bert

Definition at line 45 of file JarList.java.


Constructor & Destructor Documentation

org.objectweb.jonas.ear.lib.JarList.JarList  ) 
 

Construct an instance of a JarList

Definition at line 50 of file JarList.java.

org.objectweb.jonas.ear.lib.JarList.JarList StringTokenizer  st  ) 
 

Construct an instance of a JarList

Parameters:
st a String tokenizer

Definition at line 58 of file JarList.java.

References org.objectweb.jonas.ear.lib.JarList.add().

Here is the call graph for this function:

org.objectweb.jonas.ear.lib.JarList.JarList String[]  strs  ) 
 

Construct an instance of a JarList

Parameters:
strs an array of files

Definition at line 72 of file JarList.java.

References org.objectweb.jonas.ear.lib.JarList.add().

Here is the call graph for this function:

org.objectweb.jonas.ear.lib.JarList.JarList Web[]  wars  ) 
 

Construct an instance of a JarList with a wars Array

Parameters:
wars an array of war file

Definition at line 84 of file JarList.java.

References org.objectweb.jonas.ear.lib.JarList.add(), and org.objectweb.jonas_ear.deployment.xml.Web.getWebUri().

Here is the call graph for this function:


Member Function Documentation

void org.objectweb.jonas.ear.lib.JarList.add String  fileName  ) 
 

Add the specified file to the current list.

Parameters:
fileName the name of the file to add.

Definition at line 97 of file JarList.java.

Referenced by org.objectweb.jonas.ear.lib.JarList.JarList(), and org.objectweb.jonas.ear.lib.JarList.merge().

URL [] org.objectweb.jonas.ear.lib.JarList.getURLs String  dirName  )  throws JarListException
 

Get the URLs of all the JAR file list append to dirName.

Parameters:
dirName the name of the directory where we append the files.
Returns:
the absolute URLs of the JAR files.
Exceptions:
JarListException if url are malformed

Definition at line 109 of file JarList.java.

Referenced by org.objectweb.jonas.ear.EarServiceImpl.deployEar().

void org.objectweb.jonas.ear.lib.JarList.merge JarList  jarList  ) 
 

Merge the specified JarList to the current JarList without adding duplicate entry.

Parameters:
jarList the list to merge.

Definition at line 128 of file JarList.java.

References org.objectweb.jonas.ear.lib.JarList.add().

Here is the call graph for this function:

void org.objectweb.jonas.ear.lib.JarList.remove JarList  jarList  ) 
 

Remove all the entries contained in the jarList to the current jarList.

Parameters:
jarList the jarList to remove.

Definition at line 140 of file JarList.java.

void org.objectweb.jonas.ear.lib.JarList.setRelativePath String  path  ) 
 

Set the relative path of the current list. This is useful in the case of an EAR file because the class-path is relative to the JAR file and not the EAR file.

Parameters:
path the path for set the relative path

Definition at line 156 of file JarList.java.


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