Index: test/com/google/gwt/inject/client/binding/FruitInBasketGinModule.java |
=================================================================== |
--- test/com/google/gwt/inject/client/binding/FruitInBasketGinModule.java (revision 0) |
+++ test/com/google/gwt/inject/client/binding/FruitInBasketGinModule.java (revision 0) |
@@ -0,0 +1,24 @@ |
+/* |
+ (c) 2009 Creative Development LLC. All rights reserved. |
+ http://www.ecwid.com/ |
+*/ |
+ |
+ |
+package com.google.gwt.inject.client.binding; |
+ |
+import com.google.gwt.inject.client.AbstractGinModule; |
+import com.google.inject.TypeLiteral; |
+import com.google.inject.name.Names; |
+ |
+/** |
+ * |
+ * @author Dmitry Negoda <Dmitry.Negoda@gmail.com> |
+ */ |
+public class FruitInBasketGinModule extends AbstractGinModule { |
+ |
+ protected void configure() { |
+ // make "some id" an external dependency |
+ bind(new TypeLiteral<Integer>(){}).annotatedWith(Names.named("some id")).toInstance(); |
+ } |
+ |
+} |