com.google.inject
Class Binding<T>

java.lang.Object
  extended by com.google.inject.Binding<T>

public class Binding<T>
extends Object

A binding from a Key (type and name) to an instance locator.

Author:
crazybob@google.com (Bob Lee)

Method Summary
 Key<T> getKey()
          Gets the key for this binding.
 Locator<T> getLocator()
          Gets the locator which returns instances of T.
 Object getSource()
          Gets the source object, an arbitrary object which points back to the configuration which resulted in this binding.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getKey

public Key<T> getKey()
Gets the key for this binding.


getSource

public Object getSource()
Gets the source object, an arbitrary object which points back to the configuration which resulted in this binding.


getLocator

public Locator<T> getLocator()
Gets the locator which returns instances of T.


toString

public String toString()
Overrides:
toString in class Object