Dagger 2 Component Factory Tutorial with @BindsInstance - CheezyCode (Hindi) #7 @CheezyCode
Dagger 2 Component Factory Tutorial with @BindsInstance - CheezyCode (Hindi) #7  @CheezyCode
Uploaded February 2022 | Updated September 2026, 2 weeks ago
Learn Dagger 2 Dependency Injection in Android. In this video - learn how to pass values at runtime using Modules and Factory. Factory is defined as an interface with an annotation of @Component.Factory with dynamic values bind to the component with @BindsInstance annotation. This factory is used to create the component through which you can pass the values at runtime to Dagger, so that dagger can create the required objects.

Another approach that is common for passing values at runtime is with the help of Modules. You define properties in the module and while creating the component, you provide the Module object yourself with the dynamic values you want to provide at runtime.
In this case, you might get a runtime exception if you forget to pass the required modules. But with factory, you only have one way of creating the component that prevents runtime exceptions. Learn all about this in Hindi.

Topics covered -
1. Need of passing values at runtime in Dagger2
2. How to pass values using @Module at runtime in Dagger 2?
3. What is Component Factory i.e. @Component.Factory?
4. What is @BindsInstance in Dagger 2?
5. Complete Example of Dagger 2 in Android.

Complete Dependency Injection Playlist Link -
youtube.com/playlist?list=PLRKyZvuMYSIPwjYw1bt_7u7nEwe6vATQd

Complete Android Architecture Components Playlist -
youtube.com/playlist?list=PLRKyZvuMYSIO0jLgj8g6sADnD0IBaWaw2

Beginner series in Android Playlist (Hindi) -
youtube.com/playlist?list=PLRKyZvuMYSIN9sVZTfDm4CTdTAzDQyLJU

Kotlin Beginners Tutorial Series -
youtube.com/playlist?list=PLRKyZvuMYSIMW3-rSOGCkPlO1z_IYJy3G

For more info - visit the below link
cheezycode.com

We are social. Follow us at -
Facebook - facebook.com/cheezycode
Twitter - twitter.com/cheezycode
Instagram - instagram.com/cheezycode
Dagger 2 Component Factory Tutorial with @BindsInstance - CheezyCode (Hindi) #7Android ViewModel Factory Tutorial - Architecture Component Hindi- CheezyCode #4CheezyCode 50K Live - 25th September 2022 - 7:00PMKotlin Coroutines Introduction (Behind The Scenes) in Hindi - CheezyCodePaging 3 Loader Android Tutorial | Load State Adapter - CheezyCode | HindiPaging 3 Remote Mediator Implementation Tutorial | Offline Support - CheezyCode | HindiAndroid Hilt with MVVM Tutorial - CheezyCode (Hindi)Android Pass Data Between Fragment | RecyclerView Item Click | CheezyCode (Hindi)Hilt @Binds Annotation and Qualifiers Android Tutorial - CheezyCode (Hindi)Android ViewModel Tutorial| Android Jetpack Components Hindi- CheezyCode #3CheezyCode - Happy New Year 2025JavaScript DOM Manipulation - Complete Example Hindi - CheezyCode | #37
Cheezy Code |

Dagger 2 Component Factory Tutorial with @BindsInstance - CheezyCode (Hindi) #7

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER