dagger-intellij-plugin
dagger-intellij-plugin copied to clipboard
Detect module injection
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;
}
}
declared mapping in module:
@Module
public class ProfileFacadeModule {
@Provides
ProfileFacade provideProfileCountriesFacade(ProfileCountriesFacade profileFacade) {
return profileFacade;
}
}