KoinDefinition

data class KoinDefinition<R>(val module: Module, val factory: InstanceFactory<R>)

Constructors

Link copied to clipboard
constructor(module: Module, factory: InstanceFactory<R>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <S : Any> KoinDefinition<out S>.bind(): KoinDefinition<out S>
infix fun <S : Any> KoinDefinition<out S>.bind(clazz: KClass<S>): KoinDefinition<out S>

Add a compatible type to match for definition

Link copied to clipboard
infix fun KoinDefinition<*>.binds(classes: Array<KClass<*>>): KoinDefinition<*>

Add compatible types to match for definition

Link copied to clipboard

Callback when closing instance

Link copied to clipboard

Conditionally apply options to a definition if the options parameter is not null.

Link copied to clipboard

Mark this definition as allowing override, even when global allowOverride is false.

Link copied to clipboard
infix inline fun <T> KoinDefinition<T>.withOptions(options: DefinitionOptions<T>): KoinDefinition<T>

Apply additional options to a definition using a DSL block.