Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. class CoffeeApp implements Runnable {
  2. @Inject CoffeeMaker coffeeMaker;
  3.  
  4. @Override public void run() {
  5. coffeeMaker.brew();
  6. }
  7.  
  8. public static void main(String[] args) {
  9. ObjectGraph objectGraph = ObjectGraph.create(new DripCoffeeModule());
  10. CoffeeApp coffeeApp = objectGraph.get(CoffeeApp.class);
  11. ...
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement