|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.generators.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(File file)
Add a temporary File in the repository (file or directory). |
File |
createDir()
Return an empty temporary directory and automatically add it into the repository. |
File |
createDir(String extension)
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(File file)
file
- the temporary file or directory to add.public boolean deleteAll()
public File createDir() throws IOException
IOException
- when creation fails.public File createDir(String extension) throws IOException
IOException
- when creation fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |