toothpick-runtime / toothpick / Toothpick / inject

inject

open static fun inject(obj: Any, scope: Scope): Unit

Injects all dependencies (transitively) in obj, dependencies will be obtained in the scope scope.

Parameters

obj - the object to be injected.

scope - the scope in which all dependencies are obtained.