001package edu.pdx.cs410J.di;
002
003import com.google.inject.Guice;
004import com.google.inject.Injector;
005
006
007public class GuicyBookStoreApp extends BookStoreApp
008{
009  public static void main(String... args) {
010      Injector injector = Guice.createInjector( new BookStoreModule() );
011      BookInventory inventory = injector.getInstance( BookInventory.class );
012      addBooks( inventory );
013
014      BookStoreGUI gui = injector.getInstance( BookStoreGUI.class );
015      gui.pack();
016      gui.setVisible( true );
017  }
018
019}