Skip to content

Commit 09e5313

Browse files
committed
docs: registry diagram
1 parent 6d6638f commit 09e5313

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: registry/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ wiki.c2.com says
3838

3939
> A registry is a global association from keys to objects, allowing the objects to be reached from anywhere. It involves two methods: one that takes a key and an object and add objects to the registry and one that takes a key and returns the object for the key. It's similar to the MultitonPattern, but doesn't restrict instances to only those in the registry.
4040
41+
Flowchart
42+
43+
![Registry flowchart](./etc/registry-flowchart.png)
44+
4145
## Programmatic Example of Registry Pattern in Java
4246

4347
The Registry design pattern is a well-known pattern used in software design where objects are stored and provide a global point of access to them. This pattern is particularly useful when you need to manage a global collection of objects, decouple the creation of objects from their usage, ensure a controlled lifecycle for objects, and avoid redundant creation of objects.

Diff for: registry/etc/registry-flowchart.png

70 KB
Loading

0 commit comments

Comments
 (0)