com.google.inject.spi

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
    Author:
    jessewilson@google.com (Jesse Wilson)
    • Method Detail

      • getValue

        T getValue()
        Returns the converted value.
      • getTypeConverterBinding

        TypeConverterBinding getTypeConverterBinding()
        Returns the type converter binding used to convert the constant.
        Since:
        3.0

Copyright © 2006–2020 Google, Inc.. All rights reserved.