I think Matthias Blankenhaus wrote:
> Hello everybody ?
> 
> I am new here and have a basic question about Jess:
> 
> Is there a way to selectively register interest for java bean properties
> via definstance ?  Basically I'd like to subscribe at run-time for a
> particular set of properties that I am interested in.  This subscription
> set might change during run-time.

Jess doesn't offer this feature. But two thoughts:

If you control the source of the Beans themselves, you might modify
them such that they only send PropertyChengeEvents for the properties
you're interested in at any one time; Jess would then not react to
changes on the other properties.

If you create a Java interface containing only the methods
corresponding to "interesting" properties and then use that class to
issue the "defclass" command, the created deftemplate will only have
slots for the properties of that interface, so any definstances for
beans that implement that interface will include only those
interesting properties. Note that the bean doesn't actually need to
implement the interface -- it only needs to have methods with the same
signatures.




> 
> Thanx,
> Matthias
> 




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

---------------------------------------------------------------------
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