|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
CheckedProvider instead.
@Deprecated public interface ThrowingProvider<T,E extends Exception>
Alternative to the Guice Provider that throws
a checked Exception. Users may not inject T directly.
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 by get() will be scoped. As a consequence, get()
will invoked at most once within each scope.
| Method Summary | |
|---|---|
T |
get()
Deprecated. |
| Method Detail |
|---|
T get()
throws E extends Exception
get in interface CheckedProvider<T>E extends Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||