mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2025-03-29 05:20:29 +08:00
Update 05. 使用依赖注入取代硬连接资源(hardwiring resources).md
This commit is contained in:
parent
4c68a9b3d1
commit
11379aa552
@ -1,6 +1,5 @@
|
||||
# 05. 使用依赖注入取代硬连接资源(hardwiring resources)
|
||||
|
||||
---
|
||||
|
||||
许多类依赖于一个或多个底层资源。例如,拼写检查器依赖于字典。将此类类实现为静态实用工具类并不少见 (条目 4):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user