Interface LazyBindingCollection
- All Known Implementing Classes:
CombinedLazyBindingCollection,FactoryLazyBindingCollection,ProvidesLazyBindingCollection
-
Method Summary
Modifier and TypeMethodDescriptioncombine(@NotNull LazyBindingCollection other) Combines this binding collection with the given other binding collection.constructBindings(@NotNull dev.derklaro.aerogel.Injector injector) Constructs all bindings for the given injector and returns them for further handling by the caller.voidinstallBindings(@NotNull dev.derklaro.aerogel.Injector injector) Installs the bindings that are located in this collection directly into the given injector.
-
Method Details
-
installBindings
-
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
@NotNull @Contract("_ -> new") @NotNull LazyBindingCollection combine(@NotNull @NotNull LazyBindingCollection other) 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.
-