bindInstance

inline fun <T : Any> DI.Builder.bindInstance(tag: Any? = null, overrides: Boolean? = null, creator: () -> T)

Binds an instance provider: will always return the given instance.

T generics will be erased!

Parameters

T

The type of the instance.

creator

A function that must the instance of type T.