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
design-patterns .net


source to share


2 answers


Yes, the Mediator template is from the original Design Templates .



+3


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


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics