Class AbstractBindingBuilder<T>

org.elasticsearch.common.inject.internal.AbstractBindingBuilder<T>
Direct Known Subclasses:
BindingBuilder, ConstantBindingBuilderImpl

public abstract class AbstractBindingBuilder<T> extends
Bind a value or constant.
  • Field Details

    • IMPLEMENTATION_ALREADY_SET

      public static final  IMPLEMENTATION_ALREADY_SET
      See Also:
      Constant Field Values
    • SINGLE_INSTANCE_AND_SCOPE

      public static final  SINGLE_INSTANCE_AND_SCOPE
      See Also:
      Constant Field Values
    • SCOPE_ALREADY_SET

      public static final  SCOPE_ALREADY_SET
      See Also:
      Constant Field Values
    • BINDING_TO_NULL

      public static final  BINDING_TO_NULL
      See Also:
      Constant Field Values
    • CONSTANT_VALUE_ALREADY_SET

      public static final  CONSTANT_VALUE_ALREADY_SET
      See Also:
      Constant Field Values
    • ANNOTATION_ALREADY_SPECIFIED

      public static final  ANNOTATION_ALREADY_SPECIFIED
      See Also:
      Constant Field Values
    • NULL_KEY

      protected static final Key<?> NULL_KEY
    • elements

      protected <Element> elements
    • position

      protected int position
    • binder

      protected final Binder binder
  • Constructor Details

    • AbstractBindingBuilder

      public AbstractBindingBuilder(Binder binder, <Element> elements,  source, Key<T> key)
  • Method Details

    • getBinding

      protected BindingImpl<T> getBinding()
    • setBinding

      protected BindingImpl<T> setBinding(BindingImpl<T> binding)
    • annotatedWithInternal

      protected <? extends > annotationType)
      Sets the binding to a copy with the specified annotation on the bound key
    • annotatedWithInternal

      protected  annotation)
      Sets the binding to a copy with the specified annotation on the bound key
    • in

      public void in(<? extends > scopeAnnotation)
    • in

      public void in(Scope scope)
    • asEagerSingleton

      public void asEagerSingleton()
    • keyTypeIsSet

      protected boolean keyTypeIsSet()
    • checkNotTargetted

      protected void checkNotTargetted()
    • checkNotAnnotated

      protected void checkNotAnnotated()
    • checkNotScoped

      protected void checkNotScoped()