Annotation Type CheckedProvides
-
@Documented @Target(METHOD) @Retention(RUNTIME) public @interface CheckedProvidesAnnotates methods of aModuleto create aCheckedProvidermethod binding that can throw exceptions. The method's return type is bound to aCheckedProviderthat can be injected. Guice will pass dependencies to the method as parameters. Install @CheckedProvides methods by usingThrowingProviderBinder.forModule(com.google.inject.Module)on the module where the methods are declared.- Since:
- 3.0
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<? extends CheckedProvider>valueThe interface that provides this value, a subinterface ofCheckedProvider.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanscopeExceptionsWhether exceptions should be put into the Guice scope.
-
-
-
Element Detail
-
value
java.lang.Class<? extends CheckedProvider> value
The interface that provides this value, a subinterface ofCheckedProvider.
-
-