Internal change.

PiperOrigin-RevId: 420766497
This commit is contained in:
Guice Team
2022-01-10 08:21:35 -08:00
committed by Guice Team
parent 60fddb2c28
commit 240406ceaf
3 changed files with 11 additions and 11 deletions
+9 -9
View File
@@ -30,15 +30,15 @@ import java.lang.annotation.Target;
* {@link Injector} should inject values. The Injector fulfills injection requests for:
*
* <ul>
* <li>Every instance it constructs. The class being constructed must have exactly one of its
* constructors marked with {@code @Inject} or must have a constructor taking no parameters. The
* Injector then proceeds to perform field and method injections.
* <li>Pre-constructed instances passed to {@link Injector#injectMembers}, {@link
* com.google.inject.binder.LinkedBindingBuilder#toInstance(Object)} and {@link
* com.google.inject.binder.LinkedBindingBuilder#toProvider(javax.inject.Provider)}. In this
* case all constructors are, of course, ignored.
* <li>Static fields and methods of classes which any {@link Module} has specifically requested
* static injection for, using {@link Binder#requestStaticInjection}.
* <li>Every instance it constructs. The class being constructed must have exactly one of its
* constructors marked with {@code @Inject} or must have a constructor taking no parameters.
* The Injector then proceeds to perform field and method injections.
* <li>Pre-constructed instances passed to {@link Injector#injectMembers}, {@link
* com.google.inject.binder.LinkedBindingBuilder#toInstance(Object)} and {@link
* com.google.inject.binder.LinkedBindingBuilder#toProvider(javax.inject.Provider)}. In this
* case all constructors are, of course, ignored.
* <li>Static fields and methods of classes which any {@link Module} has specifically requested
* static injection for, using {@link Binder#requestStaticInjection}.
* </ul>
*
* In all cases, a member can be injected regardless of its Java access specifier (private, default,
@@ -40,7 +40,7 @@ import java.lang.annotation.Target;
* thus receive none of the benefits.
*
* <p>Constructor parameters must be either supplied by the factory interface and marked with <code>
* @Assisted</code>, or they must be injectable.
* {@literal @}Assisted</code>, or they must be injectable.
*
* @author jmourits@google.com (Jerome Mourits)
* @author jessewilson@google.com (Jesse Wilson)
@@ -26,7 +26,7 @@ import java.lang.annotation.Target;
* Annotation used by {@link BoundFieldModule} to indicate that a field should be bound to its value
* using Guice.
*
* <p>{@Bind} supports binding annotations. For example, to bind a {@code @Fast Car}, use
* <p>{@code Bind} supports binding annotations. For example, to bind a {@code @Fast Car}, use
* {@code @Bind @Fast Car}.
*
* <p>Binding to {@code null} is only allowed for fields that are annotated {@code @Nullable}. See