com.google.inject
Class ContainerBuilder.LinkedBindingBuilder<T>

java.lang.Object
  extended by com.google.inject.ContainerBuilder.LinkedBindingBuilder<T>
Enclosing class:
ContainerBuilder

public class ContainerBuilder.LinkedBindingBuilder<T>
extends java.lang.Object

Links one binding to another.


Method Summary
 ContainerBuilder.LinkedBindingBuilder<T> from(java.lang.Object source)
          Sets the source object.
 ContainerBuilder.LinkedBindingBuilder<T> to(Key<? extends T> destination)
          Links to another binding with the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public ContainerBuilder.LinkedBindingBuilder<T> from(java.lang.Object source)
Sets the source object. Useful for debugging. Contents may include the name of the file and the line number this binding came from, a code snippet, etc.


to

public ContainerBuilder.LinkedBindingBuilder<T> to(Key<? extends T> destination)
Links to another binding with the given key.