com.google.inject
Class Binding<T>

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

public class Binding<T>
extends java.lang.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.
 java.lang.Object getSource()
          Gets the source object, an arbitrary object which points back to the configuration which resulted in this binding.
 java.lang.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 java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object