views:

56

answers:

2

Propose to consider the following problem.

Suppose we have some composite object. Are there patterns that describe the solution of mutual notification of composite object parts, when states of these parts are changed

A: 

[EN]May be, EventBus, where all parts of object publish their events and subscribe.

[RUS]Может попробовать EventBus, где части объекта публикуют свои события и подписываются на события других частей

merin
+3  A: 

Yes, the Mediator pattern from the original Design Patterns book.

Mark Seemann