Top Description Methods
com.google.inject.spi

public Interface ProviderBinding<T extends Provider<?>>

extends Binding<T extends Provider<?>>
Known Direct Implementers
com.google.inject.internal.InjectorImpl.SyntheticProviderBindingImpl
Imports
com.google.inject.Binding, .Key, .Provider

A binding to a Provider that delegates to the binding for the provided type. This binding is used whenever a Provider<T> is injected (as opposed to injecting T directly).
Author
[email protected] (Jesse Wilson)
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Key<?>
getProvidedKey()

Returns the key whose binding is used to provide instances.

Inherited from com.google.inject.Binding:
acceptScopingVisitoracceptTargetVisitorgetKeygetProvider

Method Detail

getProvidedKeyback to summary
public Key<?> getProvidedKey()

Returns the key whose binding is used to provide instances. That binding can be retrieved from an injector using Injector.getBinding(providedKey)