Author: limpbizkit
Date: Mon Mar 2 21:31:05 2009
New Revision: 903
Modified:
wiki/JustInTimeBindings.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/JustInTimeBindings.wiki
==============================================================================
--- wiki/JustInTimeBindings.wiki (original)
+++ wiki/JustInTimeBindings.wiki Mon Mar 2 21:31:05 2009
@@ -1,6 +1,6 @@
#summary Bindings that are created automatically by Guice
=Just-in-time Bindings=
-When the injector needs an instance of a type, it needs a binding. The
[CreatingBindings bindings in a modules] are called *explicit bindings*,
and the injector uses them whenever they're available. If a type is needed
but there isn't an explicit binding, the injector will attempt to create a
*Just-In-Time binding*. These are also known as JIT bindings and implicit
bindings.
+When the injector needs an instance of a type, it needs a binding. The
bindings in a modules are called *explicit bindings*, and the injector uses
them whenever they're available. If a type is needed but there isn't an
explicit binding, the injector will attempt to create a *Just-In-Time
binding*. These are also known as JIT bindings and implicit bindings.
==Constructor Bindings==
Guice can create bindings for concrete types by using the type's
*injectable constructor*. This is either a public, no-arguments
constructor, or a constructor with the `...@inject` annotation:
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---