Skip to content Skip to sidebar Skip to footer
Showing posts with the label Dependency Injection

Dagger2 What Is The Purpose Of Adding A Scope Tag To Components?

I've created a component and it only last for the lifetime of the activity. I did not use any … Read more Dagger2 What Is The Purpose Of Adding A Scope Tag To Components?

Dagger 2 - Why Is This A Dependency Cycle?

I'm trying to inject the application's Context into 2 other objects, an AuthManager and an … Read more Dagger 2 - Why Is This A Dependency Cycle?

Dagger 2 On Android: Inject Same Dependency In Activity And Retained Fragment

I have objects of classes F1 and F2 that I want to inject in a retained Fragment. I also have an ob… Read more Dagger 2 On Android: Inject Same Dependency In Activity And Retained Fragment

Injected Objects Became Null After Upgrading To Roboguice 3

I've just upgraded our project to use Roboguice 3 and all of a sudden all the injected objects … Read more Injected Objects Became Null After Upgrading To Roboguice 3

How To Pass A String To A Viewmodel/repository Class Using Dagger2 In Android?

This is my fragment class: public class MyFragment extends DaggerFragment { @Inject MyViewModel… Read more How To Pass A String To A Viewmodel/repository Class Using Dagger2 In Android?

Activity Graphs And Non-found Dependency

I'm starting using the dagger, like it pretty much, but now facing some difficulties. My scenar… Read more Activity Graphs And Non-found Dependency

Customscope May Not Reference Bindings With Different Scopes

I am new to dagger, I have defined my application component like this @Singleton @Component(modules… Read more Customscope May Not Reference Bindings With Different Scopes

Pass Context Or Activity To Adapter Using Dagger 2

I inject an Adapter using Dagger 2 without context and it is working, but I am not able to do when … Read more Pass Context Or Activity To Adapter Using Dagger 2