abstract class InstanceFactory<T>
Koin Instance Holder create/get/release an instance of given definition
<init> |
Koin Instance Holder create/get/release an instance of given definition InstanceFactory(_koin: Koin, beanDefinition: BeanDefinition<T>) |
beanDefinition |
val beanDefinition: BeanDefinition<T> |
create |
Create an instance open fun create(context: InstanceContext): T |
drop |
Drop the instance abstract fun drop(): Unit |
get |
Retrieve an instance abstract fun get(context: InstanceContext): T |
isCreated |
Is instance created abstract fun isCreated(): Boolean |
ERROR_SEPARATOR |
const val ERROR_SEPARATOR: String |
FactoryInstanceFactory |
Factory Instance Holder class FactoryInstanceFactory<T> : InstanceFactory<T> |
SingleInstanceFactory |
Single instance holder class SingleInstanceFactory<T> : InstanceFactory<T> |