package coffee;

import javax.inject.Inject;

class CoffeeMaker {
  @Inject Heater heater;
  @Inject Pump pump;

  public void brew() {
    heater.on();
    pump.pump();
    System.out.println(" [_]P coffee! [_]P ");
    heater.off();
  }
}

package coffee;

import javax.inject.Inject;

import com.squareup.objectgraph.Lazy;

class CoffeeMaker {
  @Inject Lazy<Heater> heater; // Don't want to create a possibly costly heater until we need it.
  @Inject Pump pump;

  public void brew() {
    heater.get().on();
    pump.pump();
    System.out.println(" [_]P coffee! [_]P ");
    heater.get().off();
  }
}

Add an example of injecting Lazy<T> into the CoffeeMaker app.