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
 Binding<?> createBinding(com.google.inject.ContainerImpl container)
           
 void to(boolean value)
          Binds constant to the given value.
 void to(char value)
          Binds constant to the given value.
 void to(java.lang.Class<?> value)
          Binds constant to the given value.
 void to(double value)
          Binds constant to the given value.
<E extends java.lang.Enum<E>>
void
to(E value)
          Binds constant to the given value.
 void to(float value)
          Binds constant to the given value.
 void to(int value)
          Binds constant to the given value.
 void to(long value)
          Binds constant to the given value.
 void to(short value)
          Binds constant to the given value.
 void 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

to

public void to(java.lang.String value)
Binds constant to the given value.


to

public void to(int value)
Binds constant to the given value.


to

public void to(long value)
Binds constant to the given value.


to

public void to(boolean value)
Binds constant to the given value.


to

public void to(double value)
Binds constant to the given value.


to

public void to(float value)
Binds constant to the given value.


to

public void to(short value)
Binds constant to the given value.


to

public void to(char value)
Binds constant to the given value.


to

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


to

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


createBinding

public Binding<?> createBinding(com.google.inject.ContainerImpl container)