public final class ConstantBindingBuilderImpl<T> extends AbstractBindingBuilder<T> implements AnnotatedConstantBindingBuilder , ConstantBindingBuilder
ANNOTATION_ALREADY_SPECIFIED, binder, BINDING_TO_NULL, CONSTANT_VALUE_ALREADY_SET, elements, IMPLEMENTATION_ALREADY_SET, NULL_KEY, position, SCOPE_ALREADY_SET, SINGLE_INSTANCE_AND_SCOPE| Constructor and Description |
|---|
ConstantBindingBuilderImpl(Binder
|
| Modifier and Type | Method and Description |
|---|---|
ConstantBindingBuilder |
annotatedWith(Annotation
See the EDSL examples at
Binder.
|
ConstantBindingBuilder |
annotatedWith(Class
See the EDSL examples at
Binder.
|
void |
to(boolean value)
Binds constant to the given value.
|
void |
to(byte value)
Binds constant to the given value.
|
void |
to(char value)
Binds constant to the given value.
|
void |
to(Class
Binds constant to the given value.
|
void |
to(double value)
Binds constant to the given value.
|
<E extends Enum |
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(String
Binds constant to the given value.
|
String |
toString()
|
annotatedWithInternal, annotatedWithInternal, asEagerSingleton, checkNotAnnotated, checkNotScoped, checkNotTargetted, getBinding, in, in, keyTypeIsSet, setBindingpublic ConstantBindingBuilderannotatedWith(Class <? extends Annotation > annotationType)
AnnotatedConstantBindingBuilder
Binder.
public ConstantBindingBuilderannotatedWith(Annotation annotation)
AnnotatedConstantBindingBuilder
Binder.
public void to(Stringvalue)
ConstantBindingBuilder
public void to(int value)
ConstantBindingBuilder
public void to(long value)
ConstantBindingBuilder
public void to(boolean value)
ConstantBindingBuilder
public void to(double value)
ConstantBindingBuilder
public void to(float value)
ConstantBindingBuilder
public void to(short value)
ConstantBindingBuilder
public void to(char value)
ConstantBindingBuilder
public void to(byte value)
ConstantBindingBuilder
public void to(Class<?> value)
ConstantBindingBuilder
public <E extends Enum<E>> void to(E value)
ConstantBindingBuilder
public StringtoString()