Class BindingBuilder<T>
org.elasticsearch.common.inject.internal.AbstractBindingBuilder<T>
org.elasticsearch.common.inject.internal.BindingBuilder<T>
- All Implemented Interfaces:
AnnotatedBindingBuilder<T>
,LinkedBindingBuilder<T>
,ScopedBindingBuilder
public class BindingBuilder<T>
extends AbstractBindingBuilder<T>
implements AnnotatedBindingBuilder<T>
Bind a non-constant key.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionannotation)
See the EDSL examples atBinder
.<? extends > annotationType)
See the EDSL examples atBinder
.<? extends T> implementation)
See the EDSL examples atBinder
.See the EDSL examples atBinder
.to(TypeLiteral<? extends T> implementation)
See the EDSL examples atBinder
.void
toInstance(T instance)
See the EDSL examples atBinder
.See the EDSL examples atBinder
.toProvider(Key<? extends Provider<? extends T>> providerKey)
See the EDSL examples atBinder
.toProvider(Provider<? extends T> provider)
See the EDSL examples atBinder
.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.
, , , , , , , , ,
Methods inherited from interface org.elasticsearch.common.inject.binder.ScopedBindingBuilder
asEagerSingleton, in, in
-
Constructor Details
-
BindingBuilder
-
-
Method Details
-
annotatedWith
public <? extends > annotationType)Description copied from interface:AnnotatedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
annotatedWith
in interfaceAnnotatedBindingBuilder<T>
-
annotatedWith
public annotation)Description copied from interface:AnnotatedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
annotatedWith
in interfaceAnnotatedBindingBuilder<T>
-
to
public <? extends T> implementation)Description copied from interface:LinkedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
to
in interfaceLinkedBindingBuilder<T>
-
to
Description copied from interface:LinkedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
to
in interfaceLinkedBindingBuilder<T>
-
to
Description copied from interface:LinkedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
to
in interfaceLinkedBindingBuilder<T>
-
toInstance
Description copied from interface:LinkedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
toInstance
in interfaceLinkedBindingBuilder<T>
- See Also:
Injector.injectMembers(java.lang.Object)
-
toProvider
Description copied from interface:LinkedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
toProvider
in interfaceLinkedBindingBuilder<T>
- See Also:
Injector.injectMembers(java.lang.Object)
-
toProvider
Description copied from interface:LinkedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
toProvider
in interfaceLinkedBindingBuilder<T>
-
toProvider
Description copied from interface:LinkedBindingBuilder
See the EDSL examples atBinder
.- Specified by:
toProvider
in interfaceLinkedBindingBuilder<T>
-
toString
public toString()- Overrides:
in class
-