[Tynstep-svn] r231 - trunk/step/step-web/src/main/java/com/tyndalehouse/step/guice

ChrisBurrell at crosswire.org ChrisBurrell at crosswire.org
Sun May 15 06:26:18 MST 2011


Author: ChrisBurrell
Date: 2011-05-15 06:26:17 -0700 (Sun, 15 May 2011)
New Revision: 231

Modified:
   trunk/step/step-web/src/main/java/com/tyndalehouse/step/guice/WebContextModule.java
Log:
committing fix to timeline

Modified: trunk/step/step-web/src/main/java/com/tyndalehouse/step/guice/WebContextModule.java
===================================================================
--- trunk/step/step-web/src/main/java/com/tyndalehouse/step/guice/WebContextModule.java	2011-05-13 16:47:38 UTC (rev 230)
+++ trunk/step/step-web/src/main/java/com/tyndalehouse/step/guice/WebContextModule.java	2011-05-15 13:26:17 UTC (rev 231)
@@ -1,9 +1,12 @@
 package com.tyndalehouse.step.guice;
 
 import com.google.inject.AbstractModule;
+import com.google.inject.TypeLiteral;
+import com.tyndalehouse.step.core.data.entities.TimelineEvent;
 import com.tyndalehouse.step.core.models.ClientSession;
 import com.tyndalehouse.step.guice.providers.ClientSessionProvider;
 import com.tyndalehouse.step.models.UserInterfaceTranslator;
+import com.tyndalehouse.step.models.timeline.DigestableTimeline;
 import com.tyndalehouse.step.models.timeline.simile.SimileTimelineTranslatorImpl;
 
 /**
@@ -19,6 +22,8 @@
     protected void configure() {
         // this provider is helpful for getting the request at runtime
         bind(ClientSession.class).toProvider(ClientSessionProvider.class);
-        bind(UserInterfaceTranslator.class).to(SimileTimelineTranslatorImpl.class);
+
+        bind(new TypeLiteral<UserInterfaceTranslator<TimelineEvent, DigestableTimeline>>() {
+        }).to(SimileTimelineTranslatorImpl.class);
     }
 }




More information about the Tynstep-svn mailing list