@Provides methods.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Set | |
| public abstract <T> Key | prepareMethod(Binder binder, Annotation annotation, Key<T> key, InjectionPoint injectionPoint)
Prepares a method for binding. |
| ModuleAnnotatedMethodScanner | back to summary |
|---|---|
| public ModuleAnnotatedMethodScanner() | |
| annotationClasses | back to summary |
|---|---|
| public abstract Set 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. | |
| prepareMethod | back to summary |
|---|---|
| public abstract <T> Key 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 | |