koin-core / org.koin.core.instance / InstanceRegistry

InstanceRegistry

class InstanceRegistry

Instance Resolver

Author
Arnaud Giuliani

Constructors

<init>

InstanceRegistry(beanRegistry: BeanRegistry, instanceFactory: InstanceFactory, pathRegistry: PathRegistry, scopeRegistry: ScopeRegistry)

Instance Resolver

Properties

beanRegistry

val beanRegistry: BeanRegistry

instanceFactory

val instanceFactory: InstanceFactory

pathRegistry

val pathRegistry: PathRegistry

Functions

close

fun close(): Unit

Close res

createEagerInstances

fun createEagerInstances(defaultParameters: ParameterDefinition): Unit

Create instances at start - tagged eager

dryRun

fun dryRun(defaultParameters: ParameterDefinition): Unit

Dry Run - run each definition

proceedResolution

fun <T : Any> proceedResolution(clazz: KClass<*>, scope: Scope?, parameters: ParameterDefinition, definitionResolver: () -> List<BeanDefinition<*>>): T

Resolve a dependency for its bean definition

resolve

fun <T : Any> resolve(request: InstanceRequest, filterFunction: DefinitionFilter? = null): T

resolve instance from InstanceRequest