You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rob Tompkins (JIRA)" <ji...@apache.org> on 2019/02/05 14:13:00 UTC
[jira] [Closed] (FILEUPLOAD-133) Refactor use of FileCleaner into
plugable strategy to allow overriding.
[ https://issues.apache.org/jira/browse/FILEUPLOAD-133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Tompkins closed FILEUPLOAD-133.
-----------------------------------
> Refactor use of FileCleaner into plugable strategy to allow overriding.
> -----------------------------------------------------------------------
>
> Key: FILEUPLOAD-133
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-133
> Project: Commons FileUpload
> Issue Type: Improvement
> Affects Versions: 1.2
> Reporter: Ben Sommerville
> Priority: Minor
>
> 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
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)