com.google.inject.throwingproviders
Annotation Type CheckedProvides
@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface CheckedProvides
Annotates methods of a 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.
- Since:
- 3.0
- Author:
- sameb@google.com (Sam Berlin)
value
public abstract Class<? extends CheckedProvider> value
- The interface that provides this value, a subinterface of
CheckedProvider
.
Copyright © 2006-2011 Google, Inc.. All Rights Reserved.