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

Nicolas Labrot updated VFS-587:
-------------------------------
    Attachment: VFS-587.patch

> 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
>         Attachments: VFS-587.patch
>
>
> {{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)

Reply via email to