Revision: 1203
Author: sberlin
Date: Tue Aug 10 15:59:36 2010
Log: Edited wiki page through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1203
Modified:
/wiki/UntargettedBindings.wiki
=======================================
--- /wiki/UntargettedBindings.wiki Tue Aug 10 15:59:13 2010
+++ /wiki/UntargettedBindings.wiki Tue Aug 10 15:59:36 2010
@@ -10,5 +10,5 @@
When specifying binding annotations, you must still add the target
binding, even it is the same concrete class. For example:
{{{
bind(MyConcreteClass.class).annotatedWith(Names.named("foo")).to(MyConcreteClass.class);
-
bind(AnotherConcreteClass.class).annotatedWith(Names.named("foo")).to(MyConcreteClass.class).in(Singleton.class);
+
bind(AnotherConcreteClass.class).annotatedWith(Names.named("foo")).to(AnotherConcreteClass.class).in(Singleton.class);
}}}
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.