Skip to content

Commit f01235b

Browse files
committed
docs: add notification diagram
1 parent 15ee32a commit f01235b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

notification/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ In plain words
3232

3333
> The Notification design pattern enables an object to automatically notify a list of interested observers about changes or events without knowing the specifics of the subscribers.
3434
35+
Sequence diagram
36+
37+
![Notification sequence diagram](./etc/notification-sequence-diagram.png)
38+
3539
## Programmatic Example of Notification Pattern in Java
3640

3741
The Java Notification pattern is used to capture information passed between layers, validate the information, and return any errors to the presentation layer if needed. It reduces coupling between the producer and consumer of events, enhances flexibility and reusability of components, and allows for dynamic event subscription and unsubscription.
35.4 KB
Loading

0 commit comments

Comments
 (0)