Revision: df3a31ea15ba
Author: sberlin <[email protected]>
Date: Wed Jun 18 14:43:36 2014 UTC
Log: Edited wiki page JustInTimeBindings through web user interface.
http://code.google.com/p/google-guice/source/detail?r=df3a31ea15ba&repo=wiki
Modified:
/JustInTimeBindings.wiki
=======================================
--- /JustInTimeBindings.wiki Sun Nov 21 01:40:09 2010 UTC
+++ /JustInTimeBindings.wiki Wed Jun 18 14:43:36 2014 UTC
@@ -3,7 +3,7 @@
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.
==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:
+Guice can create bindings for concrete types by using the type's
*injectable constructor*. This is either a non-private, no-arguments
constructor, or a constructor with the `@Inject` annotation:
{{{
public class PayPalCreditCardProcessor implements CreditCardProcessor {
private final String apiKey;
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/d/optout.