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 14:51:10 GMT

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

Nicolas Labrot updated VFS-587:
-------------------------------
    Description: 
{{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}}.

Is it possible to move into {{FileProvider}} the two methods {{closeFileSystem}} and {{freeUnusedResources}}
?



  was:
{{DefaultFileSystemManager}} holds a {{FileProvider}} map. 

It casts the FileProvider to an  {{#_closeFileSystem}} 




> 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
>            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}}.
> Is it possible to move into {{FileProvider}} the two methods {{closeFileSystem}} and
{{freeUnusedResources}} ?



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

Mime
View raw message