bindConstant

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

Binds a constant provider: will always return the given instance.

T generics will be erased!

Parameters

T

The type of the constant.

creator

A function that must the constant of type T.