Interface LazyBindingCollection

All Known Implementing Classes:
CombinedLazyBindingCollection, FactoryLazyBindingCollection, ProvidesLazyBindingCollection

@API(status=STABLE, since="3.0") public interface LazyBindingCollection
A collection of bindings that are lazily constructed for a given injector.
Since:
3.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Combines this binding collection with the given other binding collection.
    @NotNull List<dev.derklaro.aerogel.binding.UninstalledBinding<?>>
    constructBindings(@NotNull dev.derklaro.aerogel.Injector injector)
    Constructs all bindings for the given injector and returns them for further handling by the caller.
    void
    installBindings(@NotNull dev.derklaro.aerogel.Injector injector)
    Installs the bindings that are located in this collection directly into the given injector.
  • Method Details

    • installBindings

      void installBindings(@NotNull @NotNull dev.derklaro.aerogel.Injector injector)
      Installs the bindings that are located in this collection directly into the given injector.
      Parameters:
      injector - the injector to construct the bindings for and install into.
    • constructBindings

      @NotNull @NotNull List<dev.derklaro.aerogel.binding.UninstalledBinding<?>> constructBindings(@NotNull @NotNull dev.derklaro.aerogel.Injector injector)
      Constructs all bindings for the given injector and returns them for further handling by the caller. There is no guarantee that the returned list is mutable.
      Parameters:
      injector - the injector to construct the bindings for.
      Returns:
      the uninstalled bindings that were constructed for the given injector.
    • combine

      Combines this binding collection with the given other binding collection. Calls to the returned new binding collection will return a combined result.
      Parameters:
      other - the binding collection to combine with this binding collection.
      Returns:
      a new binding collection which executes all calls on this and the other binding collection.