bindProvider

abstract fun bindProvider(tag: Any? = null, overrides: Boolean? = null, creator: NoArgBindingDI<Any>.() -> T)

Binds a provider 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.

creator

The function that creates a new instance each time.