Home | History | Annotate | Download | only in coffee
      1 package coffee;
      2 
      3 import dagger.Component;
      4 import javax.inject.Singleton;
      5 
      6 public class CoffeeApp {
      7   @Singleton
      8   @Component(modules = { DripCoffeeModule.class })
      9   public interface Coffee {
     10     CoffeeMaker maker();
     11   }
     12 
     13   public static void main(String[] args) {
     14     Coffee coffee = DaggerCoffeeApp_Coffee.builder().build();
     15     coffee.maker().brew();
     16   }
     17 }
     18