koin-core-ext / org.koin.experimental.builder / org.koin.core.module.Module

Extensions for org.koin.core.module.Module

create

fun <T : Any> Module.create(context: DefinitionContext): T

Create instance for type T and inject dependencies into 1st constructor

factory

fun <T : Any> Module.factory(qualifier: Qualifier? = null, override: Boolean = false): BeanDefinition<T>

Create a Factory definition for given type T

factoryBy

fun <R : Any, T : R> Module.factoryBy(qualifier: Qualifier? = null, override: Boolean = false): BeanDefinition<R>

Create a Factory definition for given type T to modules and cast as R

single

fun <T : Any> Module.single(qualifier: Qualifier? = null, createOnStart: Boolean = false, override: Boolean = false): BeanDefinition<T>

Create a Single definition for given type T

singleBy

fun <R : Any, T : R> Module.singleBy(qualifier: Qualifier? = null, createOnStart: Boolean = false, override: Boolean = false): BeanDefinition<R>

Create a Single definition for given type T to modules and cast as R