FundefFunctionWrapper

class FundefFunctionWrapper<R>(scope: InjectionScope, function: KFunction<R>, qualifiers: Map<String, Qualifier>)

Wrapper class for function definitions (fundefs).

This class is responsible for turning regular function parameters into injections. You should not need to instantiate this class yourself, consider using a variant of putFundef instead.

Constructors

Link copied to clipboard
fun <R> FundefFunctionWrapper(scope: InjectionScope, function: KFunction<R>, qualifiers: Map<String, Qualifier>)

Functions

Link copied to clipboard
fun checkCallable(overrides: Map<String, Any?> = emptyMap(), instance: Any? = Unit, extension: Any? = Unit)

This function checks the behavior invoke would have with the provided parameters. Refer to invoke's documentation for more details.

Link copied to clipboard
fun invoke(overrides: Map<String, Any?> = emptyMap(), instance: Any? = Unit, extension: Any? = Unit): R

Invoke the wrapped function.