On Mon, May 11, 2009 at 7:23 PM, Aye <[email protected]> wrote:
> That sounds reasonable but when modifying the List object returned by
> calling Simple.values(), it should throw an exception since the list
> is essentially an immutable list and that the other APIs should be
> used to modify the list?

Yes, that is a good reason for making the distinction between the
state and the role interface.
Although that the List are conceived as Immutable in the dominant
context, it may be that some 'super user' context is allowed to modify
it, in  which case another role interface is exposed to the client,
operating against the same state.

Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to