| java.lang.Object | |
| ↳ | com.google.inject.util.Providers |
Static utility methods for creating and working with instances of
Provider.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns a Guice-friendly
com.google.inject.Provider for the given
JSR-330 javax.inject.Provider. | |||||||||||
Returns a provider which always provides
instance. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Returns a Guice-friendly com.google.inject.Provider for the given
JSR-330 javax.inject.Provider. The converse method is unnecessary,
since Guice providers directly implement the JSR-330 interface.
Returns a provider which always provides instance. This should not
be necessary to use in your application, but is helpful for several types
of unit tests.
| instance | the instance that should always be provided. This is also permitted to be null, to enable aggressive testing, although in real life a Guice-supplied Provider will never return null. |
|---|