public interface

ConvertedConstantBinding

implements Binding<T> HasDependencies
com.google.inject.spi.ConvertedConstantBinding<T>

Class Overview

A binding created from converting a bound instance to a new type. The source binding has the same binding annotation but a different type.

Summary

Public Methods
abstract Set<Dependency<?>> getDependencies()
Returns a singleton set containing only the converted key.
abstract Key<String> getSourceKey()
Returns the key for the source binding.
abstract TypeConverterBinding getTypeConverterBinding()
Returns the type converter binding used to convert the constant.
abstract T getValue()
Returns the converted value.
[Expand]
Inherited Methods
From interface com.google.inject.Binding
From interface com.google.inject.spi.Element
From interface com.google.inject.spi.HasDependencies

Public Methods

public abstract Set<Dependency<?>> getDependencies ()

Returns a singleton set containing only the converted key.

Returns
  • a possibly empty set

public abstract Key<String> getSourceKey ()

Returns the key for the source binding. That binding can be retrieved from an injector using Injector.getBinding(key).

public abstract TypeConverterBinding getTypeConverterBinding ()

Returns the type converter binding used to convert the constant.

public abstract T getValue ()

Returns the converted value.