@Documented @Target(METHOD) @Retention(RUNTIME) public @interface CheckedProvides
Module to create a CheckedProvider
method binding that can throw exceptions. The method's return type is bound to a CheckedProvider that can be injected. Guice will pass dependencies to the method as parameters.
Install @CheckedProvides methods by using ThrowingProviderBinder.forModule(com.google.inject.Module) on the module where the methods are
declared.| Modifier and Type | Required Element | Description |
|---|---|---|
Class<? extends CheckedProvider> |
value |
The interface that provides this value, a subinterface of
CheckedProvider. |
| Modifier and Type | Optional Element | Description |
|---|---|---|
boolean |
scopeExceptions |
Whether exceptions should be put into the Guice scope.
|
Class<? extends CheckedProvider> value
CheckedProvider.Copyright © 2006–2018 Google, Inc.. All rights reserved.