|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection<E> java.util.AbstractList<E> java.util.Vector org.objectweb.jonas.ear.lib.JarList
public class JarList
JOnAS Jar list This class provides a way for managing the class-path dependency libraries.
Field Summary |
---|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
JarList()
Construct an instance of a JarList |
|
JarList(java.lang.String[] strs)
Construct an instance of a JarList |
|
JarList(java.util.StringTokenizer st)
Construct an instance of a JarList |
|
JarList(Web[] wars)
Construct an instance of a JarList with a wars Array |
Method Summary | |
---|---|
void |
add(java.lang.String fileName)
Add the specified file to the current list. |
java.net.URL[] |
getURLs(java.lang.String dirName)
Get the URLs of all the JAR file list append to dirName. |
void |
merge(JarList jarList)
Merge the specified JarList to the current JarList without adding duplicate entry. |
void |
remove(JarList jarList)
Remove all the entries contained in the jarList to the current jarList. |
void |
setRelativePath(java.lang.String path)
Set the relative path of the current list. |
Methods inherited from class java.util.Vector |
---|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
iterator, listIterator, listIterator |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
iterator, listIterator, listIterator |
Constructor Detail |
---|
public JarList()
public JarList(java.util.StringTokenizer st)
st
- a String tokenizerpublic JarList(java.lang.String[] strs)
strs
- an array of filespublic JarList(Web[] wars)
wars
- an array of war fileMethod Detail |
---|
public void add(java.lang.String fileName)
fileName
- the name of the file to add.public java.net.URL[] getURLs(java.lang.String dirName) throws JarListException
dirName
- the name of the directory where we append the files.
JarListException
- if url are malformedpublic void merge(JarList jarList)
jarList
- the list to merge.public void remove(JarList jarList)
jarList
- the jarList to remove.public void setRelativePath(java.lang.String path)
path
- the path for set the relative path
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |