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 implementation.

Author:
crazybob@google.com (Bob Lee)

Method Summary
 Factory<T> getFactory()
          Gets the factory which returns instances of T.
 Key<T> getKey()
          Gets the key for this binding.
 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.


getFactory

public Factory<T> getFactory()
Gets the factory which returns instances of T.


toString

public String toString()
Overrides:
toString in class Object