public interface ProviderBinding<T extends Provider<?>> extends Binding<T>
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).Modifier and Type | Method and Description |
---|---|
Key<?> |
getProvidedKey()
Returns the key whose binding is used to
provide instances . |
acceptScopingVisitor, acceptTargetVisitor, getKey, getProvider
acceptVisitor, applyTo, getSource
Key<?> getProvidedKey()
provide instances
. That binding
can be retrieved from an injector using Injector.getBinding(providedKey)
Copyright © 2006–2018 Google, Inc.. All rights reserved.