how to aviod infinite loop in observer pattern?

Posted by joseph on Stack Overflow See other posts from Stack Overflow or by joseph
Published on 2010-03-17T17:54:21Z Indexed on 2010/03/17 18:11 UTC
Read the original article Hit count: 388

Filed under:
|

Hello. I have only one class with many instances. Every instance is observer of couple of other instances. As well every instance can be observable by couple of another instances.

How to avoid infinite loop of calling update() in observers?

© Stack Overflow or respective owner

Related posts about design-patterns

Related posts about java