I think [EMAIL PROTECTED] wrote:
> Ernest Friedman-Hill wrote on 11 Jul 2002:
> > Finally (and this is an unsolved problem) the whole concept of array
> > or Collection properties is problematic because neither arrays nor
> > Collections have any property change notification capabilities. If an
> > array or Collection element is modified outside of Jess, then Jess
> > won't hear about it, and its internal representation of the Bean would
> > be inaccurate. 
> 
> The 'new' J2SE 5.0 seems to have adresses this by introducing a 
> java.beans.IndexedPropertyChangeEvent.
> But I guess it's a little bit too early to start introducing Java 5-only 
> features in Jess? 
> It would be a nice feature, though...

The Bean spec has always defined indexed properties, but neither
arrays nor Collections send them, in J2SE5 nor in any other
version. Jess could indeed implement indexed Bean properties, but
remember that those involve getX(int) methods, not actually exposing
an array or Collection as a property. Coding these up into a Bean is
nontrivial; I'm not sure there's much call for this.

If Jess implemented this, would anybody use it?



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to