Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1195)

Unified Diff: test/com/google/gwt/inject/client/binding/FruitInBasketGinModule.java

Issue 196047: toInstnace() binding implementation Base URL: http://google-gin.googlecode.com/svn/trunk/
Patch Set: Created 14 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+ }
+
+}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b