koin-core / org.koin.core.instance / FactoryDefinitionInstance

FactoryDefinitionInstance

class FactoryDefinitionInstance<T> : DefinitionInstance<T>

Factory Instance Holder

Author
Arnaud Giuliani

Constructors

<init>

FactoryDefinitionInstance(beanDefinition: BeanDefinition<T>)

Factory Instance Holder

Inherited Properties

beanDefinition

val beanDefinition: BeanDefinition<T>

Functions

close

fun close(): Unit

close the instance allocation from registry

get

fun <T> get(context: InstanceContext): T

Retrieve an instance

isCreated

fun isCreated(context: InstanceContext): Boolean

Is instance created

release

fun release(context: InstanceContext): Unit

Release the held instance (if hold)

Inherited Functions

create

open fun <T> create(context: InstanceContext): T

Create an instance