# 🔪 Introduction to Dagger DI 💉 by a Life way!

DevFeed: [🔪 Introduction to Dagger DI 💉 by a Life way!](<https://devfeed.tech/articles/introduction-to-dagger-di-by-a-life-way-25731.md>)

Original publisher: [Read original article](<https://blog.shreyaspatil.dev/introduction-to-dagger-di-by-a-life-way-d34f62540329/>)

Author: Shreyas Patil

Published: 2020-03-15T07:54:11Z

Content type: article

Language: en

Sources: [Shreyas Patil's Blog](<https://devfeed.tech/sources/shreyas-patil-s-blog.md>)

Topics: [Dagger](<https://devfeed.tech/topics/dagger.md>), [Dependency injection](<https://devfeed.tech/topics/dependency-injection.md>)

Tags: [dagger](<https://devfeed.tech/tags/dagger.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [di](<https://devfeed.tech/tags/di.md>), [others](<https://devfeed.tech/tags/others.md>)

## AI overview

The excerpt describes Dagger as a static, compile-time dependency injection framework for Java and Android. It explains DI as creating dependencies outside the class that needs them and supplying them to that class. In its example, a Life object depends on Needs, which depends on Food, Clothes, and Shelter; those depend on Money, which depends on Job and Education. The text says constructor annotations tell Dagger which constructors to use and that Dagger obtains parameter values to create instances. It also mentions annotating Money to keep a single instance, then begins setting up a Life component; the excerpt ends before that setup is shown.

## Source excerpt

Demystifying Dependency Injection with Dagger. Learn DI concepts through real-life analogies and simplify your Android app architecture.