|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.inject.internal.AbstractBindingBuilder<T>
org.elasticsearch.common.inject.internal.ConstantBindingBuilderImpl<T>
public final class ConstantBindingBuilderImpl<T>
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 | |
---|---|
ConstantBindingBuilderImpl(Binder binder,
java.util.List<Element> elements,
java.lang.Object source)
|
Method Summary | ||
---|---|---|
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(java.lang.Class<?> value)
Binds constant to the given value. |
|
void |
to(double value)
Binds constant to the given value. |
|
|
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. |
|
java.lang.String |
toString()
|
Methods inherited from class org.elasticsearch.common.inject.internal.AbstractBindingBuilder |
---|
annotatedWithInternal, annotatedWithInternal, asEagerSingleton, checkNotAnnotated, checkNotScoped, checkNotTargetted, getBinding, in, in, keyTypeIsSet, setBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstantBindingBuilderImpl(Binder binder, java.util.List<Element> elements, java.lang.Object source)
Method Detail |
---|
public ConstantBindingBuilder annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
AnnotatedConstantBindingBuilder
Binder
.
annotatedWith
in interface AnnotatedConstantBindingBuilder
public ConstantBindingBuilder annotatedWith(java.lang.annotation.Annotation annotation)
AnnotatedConstantBindingBuilder
Binder
.
annotatedWith
in interface AnnotatedConstantBindingBuilder
public void to(java.lang.String value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public void to(int value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public void to(long value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public void to(boolean value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public void to(double value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public void to(float value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public void to(short value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public void to(char value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public void to(java.lang.Class<?> value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public <E extends java.lang.Enum<E>> void to(E value)
ConstantBindingBuilder
to
in interface ConstantBindingBuilder
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |