Package com.google.inject.spi
Interface ProviderBinding<T extends Provider<?>>
-
public interface ProviderBinding<T extends Provider<?>> extends Binding<T>
A binding to aProvider
that delegates to the binding for the provided type. This binding is used whenever aProvider<T>
is injected (as opposed to injectingT
directly).- Since:
- 2.0
- Author:
- jessewilson@google.com (Jesse Wilson)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Key<?>
getProvidedKey()
Returns the key whose binding is used toprovide instances
.-
Methods inherited from interface com.google.inject.Binding
acceptScopingVisitor, acceptTargetVisitor, getKey, getProvider
-
Methods inherited from interface com.google.inject.spi.Element
acceptVisitor, applyTo, getSource
-
-
-
-
Method Detail
-
getProvidedKey
Key<?> getProvidedKey()
Returns the key whose binding is used toprovide instances
. That binding can be retrieved from an injector usingInjector.getBinding(providedKey)
-
-