> Date: Mon, 11 May 2009 10:23:31 -0700
> From: [email protected]
> To: [email protected]
> Subject: Re: [qi4j-dev] How to get value composites with the parent entity?
> 
> 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?
> 

In a SimpleMixin (which I assume you have somewhere, implementing the Simple 
interface), in the method "values()", use Collections.unmodifiableList(...) 
method to return a list, which can not be modified.

_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to