Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.2
-
None
-
None
Description
For applications that do not want to use the FileCleaner service it would be very useful to allow this to be overridden.
This could be done by refactoring the use of the FileCleaner into a plugable strategy.
e..g
interface TemporaryFileCleaner {
void register(FileItem item, File file );
}
The DiskFileItem could have a default implementation of the strategy that invokes FileCleaner.track. However if required an application could supply a different stategy to the factory for use by all the items.
I'll try to post a patch implementing this in the next couple of days