Class ConstantBindingBuilderImpl<T>
java.lang.Object
org.elasticsearch.common.inject.internal.AbstractBindingBuilder<T>
org.elasticsearch.common.inject.internal.ConstantBindingBuilderImpl<T>
- All Implemented Interfaces:
AnnotatedConstantBindingBuilder,ConstantBindingBuilder
public final class ConstantBindingBuilderImpl<T>
extends AbstractBindingBuilder<T>
implements AnnotatedConstantBindingBuilder, ConstantBindingBuilder
Bind a constant.
-
Field Summary
Fields inherited from class org.elasticsearch.common.inject.internal.AbstractBindingBuilder
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 Summary
ConstructorsConstructorDescriptionConstantBindingBuilderImpl(Binder binder, List<Element> elements, Object source) -
Method Summary
Modifier and TypeMethodDescriptionannotatedWith(Annotation annotation)See the EDSL examples atBinder.annotatedWith(Class<? extends Annotation> annotationType)See the EDSL examples atBinder.voidto(boolean value)Binds constant to the given value.voidto(char value)Binds constant to the given value.voidto(double value)Binds constant to the given value.voidto(float value)Binds constant to the given value.voidto(int value)Binds constant to the given value.voidto(long value)Binds constant to the given value.voidto(short value)Binds constant to the given value.<E extends Enum<E>>
voidto(E value)Binds constant to the given value.voidBinds constant to the given value.voidBinds constant to the given value.toString()Methods inherited from class org.elasticsearch.common.inject.internal.AbstractBindingBuilder
annotatedWithInternal, annotatedWithInternal, asEagerSingleton, checkNotAnnotated, checkNotScoped, checkNotTargetted, getBinding, in, in, keyTypeIsSet, setBinding
-
Constructor Details
-
ConstantBindingBuilderImpl
-
-
Method Details
-
annotatedWith
Description copied from interface:AnnotatedConstantBindingBuilderSee the EDSL examples atBinder.- Specified by:
annotatedWithin interfaceAnnotatedConstantBindingBuilder
-
annotatedWith
Description copied from interface:AnnotatedConstantBindingBuilderSee the EDSL examples atBinder.- Specified by:
annotatedWithin interfaceAnnotatedConstantBindingBuilder
-
to
Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
public void to(int value)Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
public void to(long value)Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
public void to(boolean value)Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
public void to(double value)Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
public void to(float value)Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
public void to(short value)Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
public void to(char value)Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
to
Description copied from interface:ConstantBindingBuilderBinds constant to the given value.- Specified by:
toin interfaceConstantBindingBuilder
-
toString
-