Skip to content

Commit 906d58f

Browse files
authored
Update README.md
1 parent 8f9e999 commit 906d58f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ A minimalistic approach to dependency injection. Basically the idea is that you
99

1010
### The `@Scope` and `@Singleton` annotations are ignored.
1111

12-
Instead, you have one simple rule:
12+
Instead, you have the "same key, same bean" rule:
1313

1414
> If two beans of the same *key* are injected by the same component, then they are the same bean instance.
1515
16-
Here, "same key" means "same type and same qualifier".
17-
You can still obtain multiple instances of a bean by injecting `Provider<TheBean>`.
16+
Here, "same key" means "same type" or, if a qualifier is used, "same key and same qualifier".
17+
The SKSB-rule may seem restrictive at first, but please note that you can inject `Provider<TheBean> theBeanProvider` (and not just `TheBean theBean`). Calling `theBeanProvider.get()` will give you a freshly wired "distinct" bean instance every time.
1818

1919
### Note to dagger users
2020

0 commit comments

Comments
 (0)