|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.jonas_lib.genbase.utils.TempRepository
public class TempRepository
A TempRepository object is tye main container for temporary
directories. When an object of WsGen or ClientStubGen wants to use a temporary directory, it
ask TempRepository instance to create a new one. It is usefull when multiples
tempo directories are created. Deletion is much more simpler. The
TempRepository is a Singleton.
| Method Summary | |
|---|---|
void |
addDir(java.io.File file)
Add a temporary File in the repository (file or directory). |
java.io.File |
createDir()
Return an empty temporary directory and automatically add it into the repository. |
boolean |
deleteAll()
Delete all the files contained in the repository. |
static TempRepository |
getInstance()
Return the only instance of TempRepository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TempRepository getInstance()
public void addDir(java.io.File file)
file - the temporary file or directory to add.public boolean deleteAll()
public java.io.File createDir()
throws java.io.IOException
java.io.IOException - when creation fails.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||