fun toInstance(instance: T): Unit
DSL method to associate an instance to a binding, more Kotlin friendly.
Return
a binding statement for this key, with the instance provided by the lambda
that can be further customized.
fun toInstance(instanceProvider: () -> T): Unit
DSL method to associate an instance to a binding, more Kotlin friendly.
instanceProvider - a lambda that creates the instance
Return
a binding statement for this key, with the instance provided by the lambda
that can be further customized.