com.google.inject
Class ContainerBuilder.ConstantBindingBuilder

java.lang.Object
  extended by com.google.inject.ContainerBuilder.ConstantBindingBuilder
Enclosing class:
ContainerBuilder

public class ContainerBuilder.ConstantBindingBuilder
extends java.lang.Object

Builds a constant binding.


Method Summary
 ContainerBuilder.ConstantBindingBuilder from(java.lang.Object source)
          Sets the source object.
 ContainerBuilder.ConstantBindingBuilder to(boolean value)
          Binds constant to the given value.
 ContainerBuilder.ConstantBindingBuilder to(char value)
          Binds constant to the given value.
 ContainerBuilder.ConstantBindingBuilder to(java.lang.Class<?> value)
          Binds constant to the given value.
 ContainerBuilder.ConstantBindingBuilder to(double value)
          Binds constant to the given value.
<E extends java.lang.Enum<E>>
ContainerBuilder.ConstantBindingBuilder
to(E value)
          Binds constant to the given value.
 ContainerBuilder.ConstantBindingBuilder to(float value)
          Binds constant to the given value.
 ContainerBuilder.ConstantBindingBuilder to(int value)
          Binds constant to the given value.
 ContainerBuilder.ConstantBindingBuilder to(long value)
          Binds constant to the given value.
 ContainerBuilder.ConstantBindingBuilder to(short value)
          Binds constant to the given value.
 ContainerBuilder.ConstantBindingBuilder to(java.lang.String value)
          Binds constant to the given value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public ContainerBuilder.ConstantBindingBuilder 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.ConstantBindingBuilder to(java.lang.String value)
Binds constant to the given value.


to

public ContainerBuilder.ConstantBindingBuilder to(int value)
Binds constant to the given value.


to

public ContainerBuilder.ConstantBindingBuilder to(long value)
Binds constant to the given value.


to

public ContainerBuilder.ConstantBindingBuilder to(boolean value)
Binds constant to the given value.


to

public ContainerBuilder.ConstantBindingBuilder to(double value)
Binds constant to the given value.


to

public ContainerBuilder.ConstantBindingBuilder to(float value)
Binds constant to the given value.


to

public ContainerBuilder.ConstantBindingBuilder to(short value)
Binds constant to the given value.


to

public ContainerBuilder.ConstantBindingBuilder to(char value)
Binds constant to the given value.


to

public ContainerBuilder.ConstantBindingBuilder to(java.lang.Class<?> value)
Binds constant to the given value.


to

public <E extends java.lang.Enum<E>> ContainerBuilder.ConstantBindingBuilder to(E value)
Binds constant to the given value.