AnnotatedConstantBindingBuilder, ConstantBindingBuilderpublic 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 | Description |
|---|---|
ConstantBindingBuilderImpl(Binder binder,
java.util.List<Element> elements,
java.lang.Object source) |
| Modifier and Type | Method | Description |
|---|---|---|
ConstantBindingBuilder |
annotatedWith(java.lang.annotation.Annotation annotation) |
See the EDSL examples at
Binder. |
ConstantBindingBuilder |
annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
See the EDSL examples at
Binder. |
void |
to(boolean value) |
Binds constant to the given value.
|
void |
to(char value) |
Binds constant to the given value.
|
void |
to(double 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.
|
<E extends java.lang.Enum<E>> |
to(E value) |
Binds constant to the given value.
|
void |
to(java.lang.Class<?> value) |
Binds constant to the given value.
|
void |
to(java.lang.String value) |
Binds constant to the given value.
|
java.lang.String |
toString() |
annotatedWithInternal, annotatedWithInternal, asEagerSingleton, checkNotAnnotated, checkNotScoped, checkNotTargetted, getBinding, in, in, keyTypeIsSet, setBindingpublic ConstantBindingBuilder annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedConstantBindingBuilderBinder.annotatedWith in interface AnnotatedConstantBindingBuilderpublic ConstantBindingBuilder annotatedWith(java.lang.annotation.Annotation annotation)
AnnotatedConstantBindingBuilderBinder.annotatedWith in interface AnnotatedConstantBindingBuilderpublic void to(java.lang.String value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic void to(int value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic void to(long value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic void to(boolean value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic void to(double value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic void to(float value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic void to(short value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic void to(char value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic void to(java.lang.Class<?> value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic <E extends java.lang.Enum<E>> void to(E value)
ConstantBindingBuilderto in interface ConstantBindingBuilderpublic java.lang.String toString()
toString in class java.lang.Object