public interface

ThrowingProvider

implements CheckedProvider<T>
com.google.inject.throwingproviders.ThrowingProvider<T, E extends java.lang.Exception>

This interface is deprecated.
use CheckedProvider instead.

Class Overview

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.

Summary

Public Methods
abstract T get()
[Expand]
Inherited Methods
From interface com.google.inject.throwingproviders.CheckedProvider

Public Methods

public abstract T get ()

Throws
Exception