package com.google.tripmeout.frontend;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.servlet.GuiceServletContextListener;
import com.google.tripmeout.frontend.serialization.GsonModelSerializationModule;
import com.google.tripmeout.frontend.servlet.ServletsModule;
import com.google.tripmeout.frontend.storage.InMemoryStorageBindingModule;

/**
 * Provides an {@link Injector} configured to serve the frontend application routes.
 *
 * @see https://github.com/google/guice/wiki/ServletModule
 */
public class FrontendGuiceServletContextListener extends GuiceServletContextListener {
  @Override
  protected Injector getInjector() {
    return Guice.createInjector(new GsonModelSerializationModule(), new ServletsModule(),
        new InMemoryStorageBindingModule());
  }
}

@@ -162,16 +162,96 @@
 stener;%0A
+import com.google.tripmeout.frontend.places.PlacesApiPlaceServiceBindingModule;%0A
 import c
@@ -883,16 +883,58 @@
 Module()
+, new PlacesApiPlaceServiceBindingModule()
 );%0A  %7D%0A%7D

add PlaceService binding to Guice context listener