Skip to content

Commit

Permalink
update multi binding docs
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbsl committed Nov 14, 2022
1 parent beb9afd commit d2c1b07
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions doc/modules/core/pages/multi-binding.adoc
Expand Up @@ -53,23 +53,6 @@ val di = DI {
<1> Creating a set binding of `Configuration`.
<2> add multiple `Configuration` binding implementation.

[NOTE]
====
You can also do the same with `addInBindSet` function to add bindings to an existing:
[source,kotlin]
----
val di = DI {
bindSet<Configuration>() // <1>
addInBindSet<Configuration>() { provider { FooConfiguration() } } // <2>
addInBindSet<Configuration>() { singleton { BarConfiguration() } } // <2>
}
----
<1> Creating a set binding of `Configuration`.
<2> add multiple `Configuration` binding implementation.
====

You can also bind multiple bindings with arguments (such as `factory` or `multiton`) in a set *as long as all bindings share the same argument type*.

[source,kotlin]
Expand Down

0 comments on commit d2c1b07

Please sign in to comment.