dagger-intellij-plugin icon indicating copy to clipboard operation
dagger-intellij-plugin copied to clipboard

Detect module injection

Open Oleg-Beloy opened this issue 8 years ago • 0 comments

Asume you have @Inject annotation over class constructor The plugin shows other classes where that class is injected, but doesn't show any injection into module.

For example, this class is only injected to module mapping:

     class ProfileCountriesFacade implements ProfileFacade {

        private final ProfileService profileService;
        private final CountriesService countriesService;

        @Inject
        ProfileCountriesFacade(ProfileService profileService,
                               CountriesService countriesService) {
            this.profileService = profileService;
            this.countriesService = countriesService;
        }
    }

picture to show view

declared mapping in module:

@Module
public class ProfileFacadeModule {
    @Provides
    ProfileFacade provideProfileCountriesFacade(ProfileCountriesFacade profileFacade) {
        return profileFacade;
    }
}

Oleg-Beloy avatar Jun 28 '17 13:06 Oleg-Beloy