| java.lang.Object org.objectweb.jonas_lib.genbase.utils.TempRepository
TempRepository | public class TempRepository (Code) | | 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.
author: Guillaume Sauthier |
Method Summary | |
public void | addDir(File file) Add a temporary File in the repository (file or directory). | public File | createDir() Return an empty temporary directory and automatically add it into the
repository. | public boolean | deleteAll() Delete all the files contained in the repository. | public static TempRepository | getInstance() Return the only instance of TempRepository. |
addDir | public void addDir(File file)(Code) | | Add a temporary File in the repository (file or directory).
Parameters: file - the temporary file or directory to add. |
createDir | public File createDir() throws IOException(Code) | | Return an empty temporary directory and automatically add it into the
repository.
an empty temporary directory. throws: IOException - when creation fails. |
deleteAll | public boolean deleteAll()(Code) | | Delete all the files contained in the repository. Returns true when
deletion is successfull, false otherwise.
true when deletion is successfull, false otherwise. |
getInstance | public static TempRepository getInstance()(Code) | | Return the only instance of TempRepository.
the only instance of TempRepository. |
|
|