ktp / toothpick.ktp.delegate / ProviderDelegate

ProviderDelegate

class ProviderDelegate<T : Any> : InjectDelegate<T>

Delegate for fields that should be injected as a provider.

Constructors

<init>

ProviderDelegate(clz: Class<T>, name: String?)

Delegate for fields that should be injected as a provider.

Properties

instance

val instance: T

provider

lateinit var provider: Provider<T>

Inherited Properties

clz

val clz: Class<T>

name

val name: String?

Functions

isEntryPointInjected

fun isEntryPointInjected(): Boolean

onEntryPointInjected

fun onEntryPointInjected(scope: Scope): Unit

Inherited Functions

getValue

operator fun getValue(thisRef: Any, property: KProperty<*>): T