Interface ProviderKeyBinding<T>

  • All Superinterfaces:
    Binding<T>, Element

    public interface ProviderKeyBinding<T>
    extends Binding<T>
    A binding to a provider key. To resolve injections, the provider key is first resolved, then that provider's get method is invoked.
    Since:
    2.0
    • Method Detail

      • getProviderKey

        Key<? extends jakarta.inject.Provider<? extends T>> getProviderKey()
        Returns the key used to resolve the provider's binding. That binding can be retrieved from an injector using Injector.getBinding(providerKey)