bind

abstract fun bind(tag: Any? = null, overrides: Boolean? = null, createBinding: () -> DIBinding<*, in A, out T>)

Add a binding in the Set of type T, and also in the DI container

Parameters

tag

The tag to bind.

overrides

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

createBinding

The builder that should add binding in the set.