koin-core / org.koin.core.registry / BeanRegistry

BeanRegistry

class BeanRegistry

Bean Registry declare/find definitions

Author
Arnaud Giuliani

Constructors

<init>

BeanRegistry()

Bean Registry declare/find definitions

Functions

close

fun close(): Unit

findDefinition

fun findDefinition(qualifier: Qualifier? = null, clazz: KClass<*>): BeanDefinition<*>?

Find a definition

getAllDefinitions

fun getAllDefinitions(): Set<BeanDefinition<*>>

retrieve all definitions

getDefinition

fun getDefinition(clazz: KClass<*>): BeanDefinition<*>?

Retrieve a definition

getDefinitionsForClass

fun getDefinitionsForClass(clazz: KClass<*>): List<BeanDefinition<*>>

Find all definition compatible with given type

loadModules

fun loadModules(modules: Iterable<Module>): Unit

Load definitions from a Module

saveDefinition

fun saveDefinition(definition: BeanDefinition<*>): Unit

Save a definition

size

fun size(): Int

Total number of definitions