Package com.google.inject.spi
Interface ProviderKeyBinding<T>
A binding to a provider key. To resolve injections, the provider key is first resolved, then that
provider's
get
method is invoked.- Since:
- 2.0
- Author:
- jessewilson@google.com (Jesse Wilson)
-
Method Summary
Modifier and TypeMethodDescriptionReturns the key used to resolve the provider's binding.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 Details
-
getProviderKey
Returns the key used to resolve the provider's binding. That binding can be retrieved from an injector usingInjector.getBinding(providerKey)
-