You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ Instead there's the following rule:
52
52
53
53
> If two beans of the *same type* and *same qualifier* are injected by the *same component*, then they are the *same instance*.
54
54
55
-
Intuitively this means the same bean instance is injected everywhere (unless you're using qualifiers, or inject a provider).
55
+
Intuitively this means the same bean instance is injected everywhere (unless you're using qualifiers, or inject a provider). So everything is a "singleton".
56
56
In the example above, if multiple beans would request the logger, they would all get the same logger instance.
57
57
58
58
If you want to re-use a bean instance across multiple components, or multiple instances of the same component, use a `@Factory` or a `@Builder` to pass it around.
0 commit comments