Dagger 2 injecting parameters of constructor
I saw the following example on the Dagger 2 website : class Thermosiphon implements Pump { private final Heater heater; @Inject Thermosiphon(Heater heater) { this.heater = heater; } ... } and the documentation: When a new instance is requested, Dagger will obtain the required parameters values and invoke this constructor. When I write a Module to provide a Thermosiphon like @Module public class ThermosiphonModule { @Provides @Singleton Thermosiphon provideThermosiphon() { return new Thermosiphon(???); } } the Thermosiphon constructor still requires a Heater as an argument, rendering the whole