koin-core-ext / org.koin.experimental.builder / org.koin.dsl.ScopeSet

Extensions for org.koin.dsl.ScopeSet

factory

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

Create a Factory definition for given type T

factoryBy

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

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

scoped

fun <T : Any> ScopeSet.scoped(name: Qualifier? = null, override: Boolean = false): BeanDefinition<T>

Create a Single definition for given type T

scopedBy

fun <R : Any, T : R> ScopeSet.scopedBy(name: Qualifier? = null, override: Boolean = false): BeanDefinition<R>

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