Interface ConvertedConstantBinding<T>
- All Superinterfaces:
Binding<T>,Element,HasDependencies
public interface ConvertedConstantBinding<T> extends Binding<T>, 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 Type Method Description java.util.Set<Dependency<?>>getDependencies()Returns a singleton set containing only the converted key.Key<java.lang.String>getSourceKey()Returns the key for the source binding.TgetValue()Returns the converted value.Methods inherited from interface org.elasticsearch.common.inject.Binding
acceptScopingVisitor, acceptTargetVisitor, getKey, getProviderMethods inherited from interface org.elasticsearch.common.inject.spi.Element
acceptVisitor, applyTo, getSource
-
Method Details
-
getValue
T getValue()Returns the converted value. -
getSourceKey
Key<java.lang.String> getSourceKey()Returns the key for the source binding. -
getDependencies
java.util.Set<Dependency<?>> getDependencies()Returns a singleton set containing only the converted key.- Specified by:
getDependenciesin interfaceHasDependencies- Returns:
- a possibly empty set
-