Revision: 1391
Author: sberlin
Date: Sat Nov 20 17:36:25 2010
Log: Edited wiki page BuiltInBindings through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1391

Modified:
 /wiki/BuiltInBindings.wiki

=======================================
--- /wiki/BuiltInBindings.wiki  Wed Nov 18 14:00:24 2009
+++ /wiki/BuiltInBindings.wiki  Sat Nov 20 17:36:25 2010
@@ -25,10 +25,14 @@
 =The Injector=
In framework code, sometimes you don't know the type you need until runtime. In this rare case you should inject the injector. Code that injects the injector does not self-document its dependencies, so this approach should be done sparingly.

+=Providers=
+For every type Guice knows about, it can also inject a Provider of that type. [InjectingProviders Injecting Providers] describes this in detail.

 =!TypeLiterals=
Guice has complete type information for everything it injects. If you're injecting parameterized types, you can inject a `TypeLiteral<T>` to reflectively tell you the element type.

-
 =The Stage=
Guice supports a stage enum to differentiate between development and production runs.
+
+=!MembersInjectors=
+When binding to providers or writing extensions, you may want Guice to inject dependencies into an object that you construct yourself. To do this, add a dependency on a `MembersInjector<T>` (where T is your object's type), and then call membersInjector.injectMembers(myNewObject).

--
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.

Reply via email to