mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 16:15:23 +00:00
Use headings instead of bold text in index.md #238
This commit is contained in:
1 parent
b6beffec2e
commit
3d642cdad7
66 files changed
+373
-233
No files matched your search
@@ -9,7 +9,8 @@ tags:
|
||||
- Difficulty-Beginner
|
||||
---
|
||||
|
||||
**Intent:** Dependency Injection is a software design pattern in which one or
|
||||
## Intent
|
||||
Dependency Injection is a software design pattern in which one or
|
||||
more dependencies (or services) are injected, or passed by reference, into a
|
||||
dependent object (or client) and are made part of the client's state. The
|
||||
pattern separates the creation of a client's dependencies from its own
|
||||
@@ -18,7 +19,8 @@ inversion of control and single responsibility principles.
|
||||
|
||||

|
||||
|
||||
**Applicability:** Use the Dependency Injection pattern when
|
||||
## Applicability
|
||||
Use the Dependency Injection pattern when
|
||||
|
||||
* when you need to remove knowledge of concrete implementation from object
|
||||
* to enable unit testing of classes in isolation using mock objects or stubs
|
||||
Reference in new issue
Block a user