Interface ThrowingProvider<T,E extends Exception>
-
- All Superinterfaces:
CheckedProvider<T>
@Deprecated public interface ThrowingProvider<T,E extends Exception> extends CheckedProvider<T>
Deprecated.useCheckedProviderinstead.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:
public interface RemoteProvider<T> extends ThrowingProvider<T, RemoteException> { }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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Tget()Deprecated.
-