mirror of
https://github.com/msfjarvis/msfjarvis.dev.git
synced 2024-06-03 12:28:57 +05:30
Link to code from Dagger part 2 post
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
fdef60acc7
commit
02685759dd
|
@ -11,6 +11,8 @@ socialImage = "uploads/dagger_made_easy_social.webp"
|
||||||
|
|
||||||
Welcome back! In this post I'm taking a bit of detour from my planned schedule to write about **scoping**. We'll _definitely_ cover constructor injection in the next part :)
|
Welcome back! In this post I'm taking a bit of detour from my planned schedule to write about **scoping**. We'll _definitely_ cover constructor injection in the next part :)
|
||||||
|
|
||||||
|
> All the code from this post is available on GitHub: [msfjarvis/dagger-the-easy-way](https://github.com/msfjarvis/dagger-the-easy-way/commits/part-2)
|
||||||
|
|
||||||
Dagger 2 provides `@Scope` as a mechanism to handle scoping. Scoping allows you to keep an object instance for the duration of your scope. This means that no matter how many times the object is requested from Dagger, it returns the same instance.
|
Dagger 2 provides `@Scope` as a mechanism to handle scoping. Scoping allows you to keep an object instance for the duration of your scope. This means that no matter how many times the object is requested from Dagger, it returns the same instance.
|
||||||
|
|
||||||
## Default scopes
|
## Default scopes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user