ktp / toothpick.ktp.delegate / DelegateNotifier

DelegateNotifier

class DelegateNotifier

Internal KTP class that registers field injection delegates. The fields will be injected when calling {@link Scope#inject(Any)} with the object/entry point using field injection.

Constructors

<init>

DelegateNotifier()

Internal KTP class that registers field injection delegates. The fields will be injected when calling {@link Scope#inject(Any)} with the object/entry point using field injection.

Functions

hasDelegates

fun hasDelegates(container: Any): Boolean

notifyDelegates

fun notifyDelegates(container: Any, scope: Scope): Unit

Notify delegates that they should perform field injection.

registerDelegate

fun registerDelegate(container: Any, delegate: InjectDelegate<out Any>): Unit

Registers a delegate for a field injection.