Revision: 1392
Author: sberlin
Date: Sat Nov 20 17:40:09 2010
Log: Edited wiki page JustInTimeBindings through web user interface.
http://code.google.com/p/google-guice/source/detail?r=1392
Modified:
/wiki/JustInTimeBindings.wiki
=======================================
--- /wiki/JustInTimeBindings.wiki Mon Mar 2 21:31:05 2009
+++ /wiki/JustInTimeBindings.wiki Sat Nov 20 17:40:09 2010
@@ -2,7 +2,7 @@
=Just-in-time 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==
+==Eligible Constructors==
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:
{{{
public class PayPalCreditCardProcessor implements CreditCardProcessor {
--
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.