winter / io.jentz.winter.delegate

Package io.jentz.winter.delegate

Types

InjectedProperty

abstract class InjectedProperty<out T> : ReadOnlyProperty<Any?, T>

Base class of all injected properties.

Functions

inject

fun <R : Any> inject(qualifier: Any? = null, generics: Boolean = false): InjectedProperty<R>

Creates a property delegate for an instance of type R.

injectLazy

fun <R : Any> injectLazy(qualifier: Any? = null, generics: Boolean = false): InjectedProperty<R>

Creates a lazy property delegate for an instance of type R.

injectLazyOrNull

fun <R : Any> injectLazyOrNull(qualifier: Any? = null, generics: Boolean = false): InjectedProperty<R?>

Creates a lazy property delegate for an optional instance of type R.

injectOrNull

fun <R : Any> injectOrNull(qualifier: Any? = null, generics: Boolean = false): InjectedProperty<R?>

Creates a property delegate for an optional instance of type R.

injectProvider

fun <R : Any> injectProvider(qualifier: Any? = null, generics: Boolean = false): InjectedProperty<Provider<R>>

Creates a property delegate for a Provider of type () -> R.

injectProviderOrNull

fun <R : Any> injectProviderOrNull(qualifier: Any? = null, generics: Boolean = false): InjectedProperty<Provider<R>?>

Creates a property delegate for an optional Provider of type R.