Class AbstractBindingBuilder<T>
java.lang.Object
org.elasticsearch.common.inject.internal.AbstractBindingBuilder<T>
- Direct Known Subclasses:
BindingBuilder
,ConstantBindingBuilderImpl
Bind a value or constant.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected BindingImpl<T>
annotatedWithInternal(Annotation annotation)
Sets the binding to a copy with the specified annotation on the bound keyprotected BindingImpl<T>
annotatedWithInternal(Class<? extends Annotation> annotationType)
Sets the binding to a copy with the specified annotation on the bound keyvoid
protected void
protected void
protected void
protected BindingImpl<T>
void
in(Class<? extends Annotation> scopeAnnotation)
void
protected boolean
protected BindingImpl<T>
setBinding(BindingImpl<T> binding)
-
Field Details
-
IMPLEMENTATION_ALREADY_SET
- See Also:
- Constant Field Values
-
SINGLE_INSTANCE_AND_SCOPE
- See Also:
- Constant Field Values
-
SCOPE_ALREADY_SET
- See Also:
- Constant Field Values
-
BINDING_TO_NULL
- See Also:
- Constant Field Values
-
CONSTANT_VALUE_ALREADY_SET
- See Also:
- Constant Field Values
-
ANNOTATION_ALREADY_SPECIFIED
- See Also:
- Constant Field Values
-
NULL_KEY
-
elements
-
position
protected int position -
binder
-
-
Constructor Details
-
AbstractBindingBuilder
-
-
Method Details
-
getBinding
-
setBinding
-
annotatedWithInternal
Sets the binding to a copy with the specified annotation on the bound key -
annotatedWithInternal
Sets the binding to a copy with the specified annotation on the bound key -
in
-
in
-
asEagerSingleton
public void asEagerSingleton() -
keyTypeIsSet
protected boolean keyTypeIsSet() -
checkNotTargetted
protected void checkNotTargetted() -
checkNotAnnotated
protected void checkNotAnnotated() -
checkNotScoped
protected void checkNotScoped()
-