com.google.inject.multibindings

Interface OptionalBinderBinding<T>

  • Type Parameters:
    T - The fully qualified type of the optional binding, including Optional. For example: Optional<String>.


    public interface OptionalBinderBinding<T>
    A binding for a OptionalBinder.

    Although OptionalBinders may be injected through a variety of types T, Optional<T>, Optional<Provider<T>>, etc..), an OptionalBinderBinding exists only on the Binding associated with the Optional<T> key. Other bindings can be validated to be derived from this OptionalBinderBinding using containsElement(com.google.inject.spi.Element).

    Since:
    4.0
    Author:
    sameb@google.com (Sam Berlin)

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