commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: [VFS] Any thoughts on adding a ImmutableFileObject?
Date Tue, 26 Jun 2012 21:47:24 GMT
I don't really have a problem with an ImmutableFileObject. It just seems you could accomplish
that through attributes and permissions.  But having an ImmutableFileObject that can wrap
only FileObject would be OK.

Ralph

On Jun 26, 2012, at 9:49 AM, Gary Gregory wrote:

> On Tue, Jun 26, 2012 at 12:46 PM, Ralph Goers <ralph.goers@dslextreme.com>wrote:
> 
>> OK - but why not just return errors if isWritable() is false?
>> 
> 
> Well, isWritable() will return true most of the time in this app. But I do
> not want call sites of my class to have the option to modify the file.
> 
> Gary
> 
> 
>> Ralph
>> 
>> On Jun 26, 2012, at 7:37 AM, Gary Gregory wrote:
>> 
>>> I have an otherwise immutable class that also holds a FileObject that I
>> do
>>> not want to provide write access to. The file on disk will likely be
>>> writable but I do not want to have any VFS write APIs available.
>>> 
>>> Gary
>>> 
>>> On Tue, Jun 26, 2012 at 9:27 AM, Ralph Goers <rgoers@apache.org> wrote:
>>> 
>>>> Why?
>>>> 
>>>> Sent from my iPad
>>>> 
>>>> On Jun 26, 2012, at 4:19 AM, Gary Gregory <garydgregory@gmail.com>
>> wrote:
>>>> 
>>>>> Hi All:
>>>>> 
>>>>> Any thoughts, for, against or any, on adding an ImmutableFileObject?
>>>>> 
>>>>> Thank you,
>>>>> Gary
>>>>> 
>>>>> --
>>>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>>>> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>>>>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>>>>> Blog: http://garygregory.wordpress.com
>>>>> Home: http://garygregory.com/
>>>>> Tweet! http://twitter.com/GaryGregory
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>> 
>>>> 
>>> 
>>> 
>>> --
>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
>>> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
>> 
> 
> 
> -- 
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message