docs: add diagrams for event aggregator, event-based asynchronous, event queue, execute around, extension objects

This commit is contained in:
Ilkka Seppälä
2025-04-06 18:36:32 +03:00
parent 30d13083ae
commit aef4b37c9a
10 changed files with 20 additions and 8 deletions
+4
View File
@@ -39,6 +39,10 @@ In plain words
> Basically it's the pattern where you write a method to do things which are always required, e.g. resource allocation and clean-up, and make the caller pass in "what we want to do with the resource".
Flowchart
![Execute Around flowchart](./etc/execute-around-flowchart.png)
## Programmatic Example of Execute Around Pattern in Java
The Execute Around Pattern is a design pattern that is widely used in Java programming to manage resource allocation and deallocation. It ensures that important setup and cleanup operations are performed reliably around a core business operation. This pattern is particularly useful for resource management, such as handling files, databases, or network connections in Java applications.
Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB