commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Labrot (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (VFS-587) Remove all cast to AbstractFileProvider From FileProvider
Date Sat, 21 Nov 2015 16:14:10 GMT

     [ https://issues.apache.org/jira/browse/VFS-587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nicolas Labrot updated VFS-587:
-------------------------------
    Affects Version/s: 2.0

> Remove all cast to AbstractFileProvider From FileProvider
> ---------------------------------------------------------
>
>                 Key: VFS-587
>                 URL: https://issues.apache.org/jira/browse/VFS-587
>             Project: Commons VFS
>          Issue Type: Task
>    Affects Versions: 2.0
>            Reporter: Nicolas Labrot
>
> {{DefaultFileSystemManager}} holds a {{FileProvider}} map. 
> It casts the FileProvider to an {{AbstractFileProvider}} in methods:
> * {{#_closeFileSystem}} to calll {{AbstractFileProvider#closeFileSystem}}
> * {{#freeUnusedResources}} to calll  {{AbstractFileProvider#freeUnusedResources}}
> Thus it is not possible to implement a {{FileProvider}} which does not extend {{AbstractFileProvider}}.
> It should make sense to move the two methods {{closeFileSystem}} and {{freeUnusedResources}}
into {{FileProvider}}. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message