org.objectweb.jonas_lib.genbase.utils.TempRepository Class Reference

Collaboration diagram for org.objectweb.jonas_lib.genbase.utils.TempRepository:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void addDir (File file)
boolean deleteAll ()
File createDir () throws IOException

Static Public Member Functions

TempRepository getInstance ()

Detailed Description

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

Definition at line 42 of file TempRepository.java.


Member Function Documentation

void org.objectweb.jonas_lib.genbase.utils.TempRepository.addDir File  file  ) 
 

Add a temporary File in the repository (file or directory).

Parameters:
file the temporary file or directory to add.

Definition at line 75 of file TempRepository.java.

File org.objectweb.jonas_lib.genbase.utils.TempRepository.createDir  )  throws IOException
 

Return an empty temporary directory and automatically add it into the repository.

Returns:
an empty temporary directory.
Exceptions:
IOException when creation fails.

Definition at line 134 of file TempRepository.java.

Referenced by org.objectweb.jonas_lib.genbase.generator.AbsGenerator.AbsGenerator(), and org.objectweb.jonas_lib.genbase.utils.FileUtils.unpack().

boolean org.objectweb.jonas_lib.genbase.utils.TempRepository.deleteAll  ) 
 

Delete all the files contained in the repository. Returns true when deletion is successfull, false otherwise.

Returns:
true when deletion is successfull, false otherwise.

Definition at line 85 of file TempRepository.java.

TempRepository org.objectweb.jonas_lib.genbase.utils.TempRepository.getInstance  )  [static]
 

Return the only instance of TempRepository.

Returns:
the only instance of TempRepository.

Definition at line 62 of file TempRepository.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:13:00 2005 for JOnAS by  doxygen 1.3.9.1