Revision: dde5d91b4144
Author:   eatnumber1 <[email protected]>
Date:     Fri Apr 11 07:08:20 2014 UTC
Log:      Trivial change
http://code.google.com/p/google-guice/source/detail?r=dde5d91b4144&repo=wiki

Modified:
 /BoundFields.wiki

=======================================
--- /BoundFields.wiki   Fri Apr 11 02:19:28 2014 UTC
+++ /BoundFields.wiki   Fri Apr 11 07:08:20 2014 UTC
@@ -61,6 +61,6 @@
* For each {{{@Bind}}} annotated field of an object and its superclasses, this module will bind that field's type to that field's value at injector creation time. This includes both instance and static fields. * If {{{@Bind(to = ...)}}} is specified, the field's value will be bound to the class specified by {{{to}}} instead of the field's actual type. * If a [http://google-guice.googlecode.com/git/javadoc/com/google/inject/BindingAnnotation.html BindingAnnotation] or [http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Qualifier.html Qualifier] is present on the field, that field will be bound using that annotation via [http://google-guice.googlecode.com/git/javadoc/com/google/inject/binder/AnnotatedBindingBuilder.html annotatedWith]. For example, {{{bind(Foo.class).annotatedWith(BarAnnotation.class).toInstance(theValue)}}}. It is an error to supply more than one [http://google-guice.googlecode.com/git/javadoc/com/google/inject/BindingAnnotation.html BindingAnnotation] or [http://atinject.googlecode.com/svn/trunk/javadoc/javax/inject/Qualifier.html Qualifier]. - * If the field is of type [http://google-guice.googlecode.com/git/javadoc/com/google/inject/Provider.html Provider], the field's value will be bound as a [http://google-guice.googlecode.com/git/javadoc/com/google/inject/Provider.html Provider] using [http://google-guice.googlecode.com/git/javadoc/com/google/inject/binder/LinkedBindingBuilder.html toProvider] to the provider's parameterized type. For example, {{{Provider<Integer>}}} binds to {{{Integer}}}. Attempting to bind a non-parameterized {{{Provider}}} without a {{{@Bind(to = ...)}}} clause is an error. + * If the field is of type [http://google-guice.googlecode.com/git/javadoc/com/google/inject/Provider.html Provider], the field's value will be bound as a provider using [http://google-guice.googlecode.com/git/javadoc/com/google/inject/binder/LinkedBindingBuilder.html toProvider] to the provider's parameterized type. For example, {{{Provider<Integer>}}} binds to {{{Integer}}}. Attempting to bind a non-parameterized {{{Provider}}} without a {{{@Bind(to = ...)}}} clause is an error.

Additional information can be found in the [https://code.google.com/p/google-guice/source/browse/extensions/testlib/src/com/google/inject/testing/fieldbinder/BoundFieldModule.java source]. Javadoc link coming soon!

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

Reply via email to