Class CombinedLazyBindingCollection
java.lang.Object
dev.derklaro.aerogel.auto.internal.CombinedLazyBindingCollection
- All Implemented Interfaces:
LazyBindingCollection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LazyBindingCollectionprivate final LazyBindingCollection -
Constructor Summary
ConstructorsConstructorDescriptionCombinedLazyBindingCollection(@NotNull LazyBindingCollection left, @NotNull LazyBindingCollection right) -
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.
-
Field Details
-
left
-
right
-
-
Constructor Details
-
CombinedLazyBindingCollection
public CombinedLazyBindingCollection(@NotNull @NotNull LazyBindingCollection left, @NotNull @NotNull LazyBindingCollection right)
-
-
Method Details
-
installBindings
Description copied from interface:LazyBindingCollectionInstalls the bindings that are located in this collection directly into the given injector.- Specified by:
installBindingsin interfaceLazyBindingCollection- 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:LazyBindingCollectionConstructs 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:
constructBindingsin interfaceLazyBindingCollection- Parameters:
injector- the injector to construct the bindings for.- Returns:
- the uninstalled bindings that were constructed for the given injector.
-
combine
@NotNull public @NotNull LazyBindingCollection combine(@NotNull @NotNull LazyBindingCollection other) Description copied from interface:LazyBindingCollectionCombines this binding collection with the given other binding collection. Calls to the returned new binding collection will return a combined result.- Specified by:
combinein interfaceLazyBindingCollection- 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.
-