We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea98244 commit b6bac29Copy full SHA for b6bac29
Dagger2/5.Dagger2Lay和Provider(五).md
@@ -2,7 +2,7 @@ Dagger2Lay和Provider(五)
2
===
3
4
5
-`Lazy<>`和`Provider<>`
+`Lazy<>(延迟加载)`和`Provider<>`(强制重新加载)
6
---
7
8
我们再回到之前的例子,现在我们把前面使用单例的部分都去掉,再来继续讲其他的部分。在上面的`CoffeeModule`中,把每个`provideXXX()`都添加一句`log`:
@@ -42,7 +42,7 @@ class CoffeeMaker {
42
@Inject
43
Heater heater;
44
45
- Lazy<`> pump; // 使用lazy
+ Lazy<Pumb> pump; // 使用lazy
46
47
Provider<IceBox> iceBox; // 使用provider
48
@@ -265,4 +265,4 @@ public abstract class HomeModule {
265
266
267
- 邮箱 :charon.chui@gmail.com
268
-- Good Luck!
+- Good Luck!
0 commit comments