bindMultiton

abstract fun bindMultiton(tag: Any? = null, overrides: Boolean? = null, ref: RefMaker? = null, sync: Boolean = true, creator: BindingDI<Any>.(A) -> T)

Binds a multiton to both the set and the DI container.

Parameters

tag

The tag to bind in the DI container.

overrides

Whether this bind must or must not override an existing binding.

ref

The reference maker to use.

sync

Whether the multiton should be thread-safe.

creator

The function that creates an instance for each unique argument.