|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector
org.ow2.jonas.lib.bootstrap.JURLs
public class JURLs
This implements an utility class that list the URLs of the jars to load at the launch time of the JOnAS server.
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
JURLs()
Construct an empty JURLs. |
|
| Method Summary | |
|---|---|
void |
add(File file)
Add the specified file or directory to this JURLs. |
void |
add(File file,
String filter)
Add the content of the specified directory to this JURLs, by using the specified filter. |
void |
add(File file,
String filter,
String prefix,
String suffix)
Add the content of the specified directory to this JURLs by using a file filter and if the contained file not starts with the prefix and not ends with the suffix. |
void |
addDir(File file)
Add the specified directory to this JURLs. |
void |
addNotEndWith(File file,
String suffix)
Add the content of the specified directory to this JURLs if the contained file not ends with the specified suffix. |
void |
addNotStartWith(File file,
String prefix)
Add the content of the specified directory to this JURLs if the contained file not starts with the specified prefix. |
void |
merge(JURLs jurl)
Merge the specified JURls to this JURLs. |
void |
remove(File file)
Remove the specified file of this JURLs |
URL[] |
toURLs()
Return an array containing all the URLs of this JURLs. |
| 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 JURLs()
| Method Detail |
|---|
public void add(File file)
throws MalformedURLException
file - the specified file or directory to add to this JURLs.
MalformedURLException - to indicate that a malformed URL has
occured.
public void addDir(File file)
throws MalformedURLException
file - the directory to add to this JURLs.
MalformedURLException - to indicate that a malformed URL has
occured.
public void add(File file,
String filter)
throws MalformedURLException
file - the directory to add to this JURLs.filter - the filter to use to add the content of this directory,
null if not use the filter.
MalformedURLException - to indicate that a malformed URL has
occured.
public void addNotStartWith(File file,
String prefix)
throws MalformedURLException
file - the directory to add to this JURLs.prefix - the prefix to ignore, null if not use the prefix.
MalformedURLException - to indicate that a malformed URL has
occured.
public void addNotEndWith(File file,
String suffix)
throws MalformedURLException
file - the directory to add to this JURLs.suffix - the suffix to ignore, null if not use the suffix.
MalformedURLException - to indicate that a malformed URL has
occured.
public void add(File file,
String filter,
String prefix,
String suffix)
throws MalformedURLException
file - the directory to add to this JURLs.filter - the filter to use to add the content of this directory,
null if not use the filter.prefix - the prefix to ignore, null if not use the prefix.suffix - the suffix to ignore, null if not use the suffix.
MalformedURLException - to indicate that a malformed URL has
occured.public void merge(JURLs jurl)
jurl - the JURls to merge with this JURLs.
public void remove(File file)
throws MalformedURLException
file - the file to be removed
MalformedURLException - to indicate that a malformed URL has
occured.public URL[] toURLs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||