Revision: 1124
Author: limpbizkit
Date: Sat Nov 7 17:18:01 2009
Log: Created wiki page through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1124
Added:
/wiki/UntargettedBindings.wiki
=======================================
--- /dev/null
+++ /wiki/UntargettedBindings.wiki Sat Nov 7 17:18:01 2009
@@ -0,0 +1,11 @@
+#summary Creating bindings that don't have targets
+=Untargetted Bindings=
+
+You may create bindings without specifying a target. This is most useful
for concrete classes and types annotated by either `...@implementedby` or
`...@providedby`. An untargetted binding informs the injector about a type, so
it may prepare dependencies eagerly. Untargetted bindings have no _to_
clause, like so:
+{{{
+ @Override
+ protected void configure() {
+ bind(MyConcreteClass.class);
+ bind(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
-~----------~----~----~----~------~----~------~--~---