Interface CheckedProvider<T>
-
- All Known Subinterfaces:
ThrowingProvider<T,E>
public interface CheckedProvider<T>Alternative to the GuiceProviderthat throws a checked Exception. Users may not injectTdirectly.This interface must be extended to use application-specific exception types. Such subinterfaces may not define new methods, but may narrow the exception type.
public interface RemoteProvider<T> extends CheckedProvider<T> { T get() throws CustomExceptionOne, CustomExceptionTwo; }When this type is bound using
ThrowingProviderBinder, the value returned or exception thrown byget()will be scoped. As a consequence,get()will invoked at most once within each scope.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget()
-