koin-core / org.koin.core.registry / ScopeRegistry

ScopeRegistry

class ScopeRegistry

Scope Registry create/find scopes for Koin

Author
Arnaud Giuliani

Constructors

<init>

Scope Registry create/find scopes for Koin

ScopeRegistry(_koin: Koin)

Properties

_rootScope

var _rootScope: Scope?

_rootScopeDefinition

var _rootScopeDefinition: ScopeDefinition?

rootScope

val rootScope: Scope

scopeDefinitions

val scopeDefinitions: Map<QualifierValue, ScopeDefinition>

scopes

val scopes: Map<ScopeID, Scope>

Functions

createScope

fun createScope(scopeId: ScopeID, qualifier: Qualifier, source: Any? = null): Scope

deleteScope

fun deleteScope(scopeId: ScopeID): Unit
fun deleteScope(scope: Scope): Unit

getScopeOrNull

fun getScopeOrNull(scopeId: ScopeID): Scope?

size

fun size(): Int

unloadModules

fun unloadModules(modules: Iterable<Module>): Unit
fun unloadModules(module: Module): Unit