java.lang.Object | |
↳ | org.eclipse.sisu.inject.Guice4 |
Utility methods for dealing with changes in the Guice 4.0 SPI.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static Object |
getDeclaringSource(Binding<?> binding)
Returns the source that originally declared the given binding.
| ||||||||||
static Provider<?> |
getProviderInstance(ProviderInstanceBinding<?> binding)
Returns the provider that originally backed the given binding.
| ||||||||||
static <T> Provider<T> |
lazy(Binding<T> binding)
Returns a lazy provider that only uses the binding once and caches the result.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the source that originally declared the given binding.
binding | The binding |
---|
null
if it doesn't exist
Returns the provider that originally backed the given binding.
binding | The binding |
---|
Returns a lazy provider that only uses the binding once and caches the result.
binding | The binding |
---|