Class FactoryLazyBindingCollection

java.lang.Object
dev.derklaro.aerogel.auto.internal.factory.FactoryLazyBindingCollection
All Implemented Interfaces:
LazyBindingCollection

final class FactoryLazyBindingCollection extends Object implements LazyBindingCollection
  • Field Details

    • key

      private final dev.derklaro.aerogel.binding.key.BindingKey<?> key
    • factoryMethod

      private final Method factoryMethod
  • Constructor Details

  • Method Details

    • installBindings

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

      @NotNull public @NotNull List<dev.derklaro.aerogel.binding.UninstalledBinding<?>> constructBindings(@NotNull @NotNull dev.derklaro.aerogel.Injector injector)
      Description copied from interface: LazyBindingCollection
      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.
      Specified by:
      constructBindings in interface LazyBindingCollection
      Parameters:
      injector - the injector to construct the bindings for.
      Returns:
      the uninstalled bindings that were constructed for the given injector.
    • combine

      Description copied from interface: LazyBindingCollection
      Combines this binding collection with the given other binding collection. Calls to the returned new binding collection will return a combined result.
      Specified by:
      combine in interface LazyBindingCollection
      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.
    • makeBinding

      @NotNull private @NotNull dev.derklaro.aerogel.binding.UninstalledBinding<?> makeBinding(@NotNull @NotNull dev.derklaro.aerogel.Injector injector)