Package com.google.inject.spi
Interface LinkedKeyBinding<T>
- All Known Implementing Classes:
LinkedBindingImpl
A binding to a linked key. The other key's binding is used to resolve injections.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the linked key used to resolve injections.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
-
getLinkedKey
Returns the linked key used to resolve injections. That binding can be retrieved from an injector usingInjector.getBinding(key)
.
-