mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 12:14:04 +00:00
docs: add diagrams for event aggregator, event-based asynchronous, event queue, execute around, extension objects
This commit is contained in:
1 parent
30d13083ae
commit
aef4b37c9a
10 files changed
+20
-8
No files matched your search
@@ -36,6 +36,10 @@ In Plain Words
|
||||
|
||||
> Event Aggregator is a design pattern that allows multiple event sources to communicate with event handlers through a central point, rather than having each event source communicate directly with each handler.
|
||||
|
||||
Sequence diagram
|
||||
|
||||

|
||||
|
||||
## Programmatic Example of Event Aggregator Pattern in Java
|
||||
|
||||
Consider the following example where we use the Event Aggregator to handle multiple events.
|
||||
@@ -161,10 +165,6 @@ The console output after running the example.
|
||||
21:37:38.739 [main] INFO com.iluwatar.event.aggregator.KingJoffrey -- Received event from the King's Hand: Traitor detected
|
||||
```
|
||||
|
||||
## Detailed Explanation of Event Aggregator Pattern with Real-World Examples
|
||||
|
||||

|
||||
|
||||
## When to Use the Event Aggregator Pattern in Java
|
||||
|
||||
Use the Event Aggregator pattern when
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Reference in new issue
Block a user