ktp / toothpick.ktp.binding / toothpick.config.Module / bind

bind

fun <T : Any> Module.bind(key: KClass<T>): CanBeNamed<T>

DSL method to start a binding statement.

Parameters

key - the {@link KClass} used as a key for this binding.

Return
a binding statement for this key, that can be further customized.

See Also

module

inline fun <reified T : Any> Module.bind(): CanBeNamed<T>

DSL method to start a binding statement, using reified types for a more Kotlin friendly syntax.

Parameters

T - the {@link KClass} used as a key for this binding.

Return
a binding statement for this key, that can be further customized.

See Also

toothpick.config.Module.bind