Tag

Dagger2

1 views collected around this technical thread.

Liulishuo Tech Team
Liulishuo Tech Team
May 24, 2017 · Mobile Development

Understanding Dagger 2 Modules, Components, and Subcomponents in Android

This article explains how Dagger 2 structures dependency injection for Android apps using Modules, Components, and Subcomponents, illustrating their roles with diagrams, comparing them to manual injection, and showing how they clarify code dependencies while keeping runtime overhead minimal.

AndroidComponentsDagger2
0 likes · 4 min read
Understanding Dagger 2 Modules, Components, and Subcomponents in Android
Qunar Tech Salon
Qunar Tech Salon
Sep 12, 2016 · Mobile Development

Understanding Dagger2 Dependency Injection in Android with Practical Code Examples

This article explains the concepts and practical usage of Dagger2 for compile‑time dependency injection in Android, illustrating why hard‑coded object creation is problematic, how constructor, setter, and interface injection solve these issues, and providing step‑by‑step code samples for modules, components, scopes, and qualifiers.

AndroidDIDagger2
0 likes · 19 min read
Understanding Dagger2 Dependency Injection in Android with Practical Code Examples