public class SingletonInjectionProvider<T>
extends InjectionProvider
An injection provider that only creates a single instance of the type.
| Constructor and Description |
|---|
SingletonInjectionProvider(kotlin.reflect.KClass<T> type,
com.github.salomonbrys.kodein.TypeToken<T> createdType)
An injection provider that only creates a single instance of the type.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
factoryName() |
T |
getInstance() |
T |
getInstance(com.github.salomonbrys.kodein.bindings.NoArgBindingKodein kodein,
com.github.salomonbrys.kodein.Kodein.Key<kotlin.Unit,? extends T> key) |
void |
setInstance(T p) |
factoryFullName, factoryName, getArgType, getCreatedType, getDescription, getFullDescription, getInstance, getInstance, getTypepublic SingletonInjectionProvider(kotlin.reflect.KClass<T> type,
com.github.salomonbrys.kodein.TypeToken<T> createdType)
An injection provider that only creates a single instance of the type.
public T getInstance()
public void setInstance(T p)
public T getInstance(com.github.salomonbrys.kodein.bindings.NoArgBindingKodein kodein,
com.github.salomonbrys.kodein.Kodein.Key<kotlin.Unit,? extends T> key)
public java.lang.String factoryName()