koin-core / org.koin.dsl / ScopeSet

ScopeSet

data class ScopeSet

DSL Scope Definition

Constructors

<init>

ScopeSet(qualifier: Qualifier, definitions: HashSet<BeanDefinition<*>> = hashSetOf())

DSL Scope Definition

Properties

definitions

val definitions: HashSet<BeanDefinition<*>>

qualifier

val qualifier: Qualifier

Functions

factory

fun <T> factory(qualifier: Qualifier? = null, override: Boolean = false, definition: Definition<T>): BeanDefinition<T>

scoped

fun <T> scoped(name: Qualifier? = null, definition: Definition<T>): BeanDefinition<T>

Declare a ScopeInstance definition

single

fun <T> single(qualifier: Qualifier? = null, createdAtStart: Boolean = false, override: Boolean = false, definition: Definition<T>): BeanDefinition<T>

toString

fun toString(): String