ModuleAnnotatedMethodScanner that handles the {@Provides }, ProvidesIntoSet,
ProvidesIntoMap and ProvidesIntoOptional annotations.
This is the default scanner used by ProviderMethodsModule and handles all the built in annotations.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ImmutableSet | |
| pack-priv static final ProvidesMethodScanner |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Set | annotationClasses()
Implements abstract com. |
| private static ProvidesMethodScanner. | |
| public <T> Key | prepareMethod(Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint)
Implements abstract com. |
| pack-priv static ProvidesMethodScanner. |
| ANNOTATIONS | back to summary |
|---|---|
| private static final ImmutableSet<Class<? extends Annotation>> ANNOTATIONS | |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final ProvidesMethodScanner INSTANCE | |
| ProvidesMethodScanner | back to summary |
|---|---|
| private ProvidesMethodScanner() | |
| annotationClasses | back to summary |
|---|---|
| public Set Implements abstract com. Doc from com. Returns the annotations this should scan for. Every method in the module that has one of these annotations will create a Provider binding, with the return value of the binding being what's provided and the parameters of the method being dependencies of the provider.
| |
| findMapKeyAnnotation | back to summary |
|---|---|
| private static ProvidesMethodScanner. | |
| prepareMethod | back to summary |
|---|---|
| public <T> Key Implements abstract com. Doc from com. Prepares a method for binding. This The injection point and annotation are provided in case the implementation wants to set the
key based on the property of the annotation or if any additional preparation is needed for any
of the dependencies. The annotation is guaranteed to be an instance of one the classes returned
by Returning null will cause Guice to skip this method, so that it is not bound to any key. If
| |
| typeAndValueOfMapKey | back to summary |
|---|---|
pack-priv static ProvidesMethodScanner.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Annotation | |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static ProvidesMethodScanner. | |
| pack-priv static ProvidesMethodScanner. |
| annotation | back to summary |
|---|---|
| pack-priv final Annotation annotation | |
| error | back to summary |
|---|---|
| pack-priv final boolean error | |
| AnnotationOrError | back to summary |
|---|---|
| pack-priv AnnotationOrError(Annotation annotation, boolean error) | |
| forError | back to summary |
|---|---|
| pack-priv static ProvidesMethodScanner. | |
| forPossiblyNullAnnotation | back to summary |
|---|---|
| pack-priv static ProvidesMethodScanner. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final TypeLiteral | |
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| type | back to summary |
|---|---|
| pack-priv final TypeLiteral<T> type | |
| value | back to summary |
|---|---|
| pack-priv final T value | |
| TypeAndValue | back to summary |
|---|---|
| pack-priv TypeAndValue(TypeLiteral<T> type, T value) | |