Mutual notification patterns
We propose to consider the following problem.
Let's assume we have a composite object. Are there templates that describe the solution of mutual notification of the constituent parts of an object when the states of these parts change.
+2
madcyree
source
to share
2 answers
Yes, the Mediator template is from the original Design Templates .
+3
Mark Seemann
source
to share
[EN] Possibly an EventBus, where all parts of the object publish their events and subscribe.
[RUS] Can try EventBus, where parts of the object publish their events and subscribe to events of other parts
0
merin
source
to share