• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package coffee;
2 
3 import javax.inject.Inject;
4 
5 class Thermosiphon implements Pump {
6   private final Heater heater;
7 
8   @Inject
Thermosiphon(Heater heater)9   Thermosiphon(Heater heater) {
10     this.heater = heater;
11   }
12 
pump()13   @Override public void pump() {
14     if (heater.isHot()) {
15       System.out.println("=> => pumping => =>");
16     }
17   }
18 }
19