Author: limpbizkit
Date: Sun Mar 1 13:46:08 2009
New Revision: 882
Modified:
wiki/JustInTimeBindings.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/JustInTimeBindings.wiki
==============================================================================
--- wiki/JustInTimeBindings.wiki (original)
+++ wiki/JustInTimeBindings.wiki Sun Mar 1 13:46:08 2009
@@ -15,7 +15,7 @@
}}}
Guice will not construct nested classes unless they have the `static`
modifier. Inner classes have an implicit reference to their enclosing class
that cannot be injected.
-...@implementedby==
+...@!implementedby==
Annotate types tell the injector what their default implementation type
is. The `...@implementedby` annotation acts like a *linked binding*,
specifying the subtype to use when building a type.
{{{
@ImplementedBy(PayPalCreditCardProcessor.class)
@@ -30,7 +30,7 @@
}}}
If a type is in both a `bind()` statement (as the first argument) and has
the `...@implementedby` annotation, the `bind()` statement is used. The
annotation suggests a _default implementation_ that can be overridden with
a binding. Use `...@implementedby` carefully; it adds a compile-time
dependency from the interface to its implementation.
-...@providedby==
+...@!providedby==
`...@providedby` tells the injector about a `Provider` class that produces
instances:
{{{
@ProvidedBy(DatabaseTransactionLogProvider.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
-~----------~----~----~----~------~----~------~--~---