configureFundef
fun <R> KFunction<R>.configureFundef(block: FundefConfigureDsl<R>.() -> Unit): FundefConfigureDsl<R>
Configure a fundef by providing additional qualifiers for the underlying function's parameters. Here's an example of what that looks like:
fun myFundef(argOne: SomeComponent) {
// ...
}
class SomeComponent {
// ...
}
val env = tegralDi {
put(named("ONE!!!"), ::SomeComponent)
put(
::myFundef.configureFundef {
"argOne" qualifyWith named("ONE!!!")
}
)
}
Content copied to clipboard