Interface ConvertedConstantBinding<T>
- All Superinterfaces:
Binding<T>
,Element
,HasDependencies
A binding created from converting a bound instance to a new type. The source binding has the same
binding annotation but a different type.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionSet<Dependency<?>>
Returns a singleton set containing only the converted key.Returns the key for the source binding.getValue()
Returns the converted value.Methods inherited from interface org.elasticsearch.common.inject.Binding
acceptScopingVisitor, acceptTargetVisitor, getKey, getProvider
Methods inherited from interface org.elasticsearch.common.inject.spi.Element
acceptVisitor, applyTo, getSource
-
Method Details
-
getValue
T getValue()Returns the converted value. -
getSourceKey
Returns the key for the source binding. -
getDependencies
Set<Dependency<?>> getDependencies()Returns a singleton set containing only the converted key.- Specified by:
getDependencies
in interfaceHasDependencies
- Returns:
- a possibly empty set
-