mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 22:13:22 +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
@@ -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
|
||||
|
||||

|
||||
|
||||
## 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 |
Reference in new issue
Block a user