org.elasticsearch.common.inject.spi
Interface LinkedKeyBinding<T>

All Superinterfaces:
Binding<T>, Element
All Known Implementing Classes:
LinkedBindingImpl

public interface LinkedKeyBinding<T>
extends Binding<T>

A binding to a linked key. The other key's binding is used to resolve injections.

Since:
2.0
Author:
jessewilson@google.com (Jesse Wilson)

Method Summary
 Key<? extends T> getLinkedKey()
          Returns the linked key used to resolve injections.
 
Methods inherited from interface org.elasticsearch.common.inject.Binding
acceptScopingVisitor, acceptTargetVisitor, getKey, getProvider
 
Methods inherited from interface org.elasticsearch.common.inject.spi.Element
acceptVisitor, applyTo, getSource
 

Method Detail

getLinkedKey

Key<? extends T> getLinkedKey()
Returns the linked key used to resolve injections. That binding can be retrieved from an injector using Injector.getBinding(key).



Copyright © 2009-2012. All Rights Reserved.