docs: add diagrams for decorator, delegation, dependency injection, dirty flag, domain model, double buffer, double-checked locking, double dispatch, and dynamic proxy

This commit is contained in:
Ilkka Seppälä committed 2025-04-06 15:52:26 +03:00
1 parent 203548ec03
commit 30d13083ae
18 files changed
+36 -12

No files matched your search

+4
View File
@@ -35,6 +35,10 @@ Wikipedia says
> In software engineering, dependency injection is a technique in which an object receives other objects that it depends on. These other objects are called dependencies.
Sequence diagram
![Dependency Injection sequence diagram](./etc/dependency-injection-sequence-diagram.png)
## Programmatic Example of Dependency Injection Pattern in Java
The old wizard likes to fill his pipe and smoke tobacco once in a while. However, he doesn't want to depend on a single tobacco brand only but likes to be able to enjoy them all interchangeably.
Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB