You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Updated) (JIRA)" <ji...@apache.org> on 2012/04/20 15:18:42 UTC

[jira] [Updated] (VFS-255) Allow file operations to return a result

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

Gary D. Gregory updated VFS-255:
--------------------------------

    Fix Version/s:     (was: 2.0)
                   2.1
    
> Allow file operations to return a result
> ----------------------------------------
>
>                 Key: VFS-255
>                 URL: https://issues.apache.org/jira/browse/VFS-255
>             Project: Commons VFS
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Frank van der Kleij
>             Fix For: 2.1
>
>
> Currently the file operations can not return any result after being executed. A simple interface should allow marking the operations that return something without being too strict about what they return.
> I'm working on a command line shell based on VFS that also allows executing operations (http://vfs-utils.sourceforge.net/shell). For the moment I found nothing better than to check for a method getResult() but it I would prefer to just check for the interface.
> The interface could be something like this:
> package org.apache.commons.vfs.operations;
> public interface FileOperationResult {
> 	public abstract Object getResult();
> }
> For me returning a String would be good enough,  but I think returning an Object the most appropriate. In the vfs shell I just do a toString() on it. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira