Top Description Methods
com.google.inject.spi

public Interface LinkedKeyBinding<T>

extends Binding<T>
Known Direct Implementers
com.google.inject.internal.LinkedBindingImpl
Imports
com.google.inject.Binding, .Key

A binding to a linked key. The other key's binding is used to resolve injections.
Author
[email protected] (Jesse Wilson)
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Key<? extends T>
getLinkedKey()

Returns the linked key used to resolve injections.

Inherited from com.google.inject.Binding:
acceptScopingVisitoracceptTargetVisitorgetKeygetProvider

Method Detail

getLinkedKeyback to summary
public Key<? extends T> getLinkedKey()

Returns the linked key used to resolve injections. That binding can be retrieved from an injector using Injector.getBinding(key).