Interface BindingLocator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BindingLocator
This function is passed to a generator when trying to generate a binding.

Generators can depend on other bindings that could not be present but can be generated. This function is used as a mean of recursion - when no requested binding is present it tries to generate it, and it is called from the generator itself.

  • Method Summary

    Modifier and Type
    Method
    Description
    <T> @Nullable Binding<T>
    get(Key<T> key)
    Retrieves existing binding for given key or tries to recursively generate it from known generators.
  • Method Details

    • get

      @Nullable <T> @Nullable Binding<T> get(Key<T> key)
      Retrieves existing binding for given key or tries to recursively generate it from known generators.