com.google.inject.spi
Interface ProviderBinding<T>

All Superinterfaces:
Binding<Provider<T>>, Element

public interface ProviderBinding<T>
extends Binding<Provider<T>>

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).

Since:
2.0

Method Summary
 Key<? extends T> getProvidedKey()
          Returns the key whose binding is used to provide instances.
 
Methods inherited from interface com.google.inject.Binding
acceptScopingVisitor, acceptTargetVisitor, getKey, getProvider
 
Methods inherited from interface com.google.inject.spi.Element
acceptVisitor, getSource
 

Method Detail

getProvidedKey

Key<? extends T> getProvidedKey()
Returns the key whose binding is used to provide instances. That binding can be retrieved from an injector using Injector.getBinding(providedKey)