Index
//hexagon_core/com.hexagonkt.injection
Package com.hexagonkt.injection¶
[jvm]
Utilities to bind classes to creation closures or instances, and inject instances of those classes later.
Types¶
Name | Summary |
---|---|
Generator | [jvm] Content data class Generator |
InjectionManager | [jvm] Content object InjectionManager More info Generators registry and utilities. |
Instance | [jvm] Content data class Instance |
Provider | [jvm] Content sealed class Provider |
Target | [jvm] Content data class Target<T : Any>(type: KClass<T>, tag: Any) |
Functions¶
Name | Summary |
---|---|
forceBind | [jvm] Content fun <T : Any, R : T> forceBind(type: KClass<T>, instance: R) fun <T : Any, R : T> forceBind(type: KClass<T>, provider: Provider<R>, tag: Any = Unit) fun <T : Any, R : T> forceBind(type: KClass<T>, tag: Any, instance: R) fun <T : Any, R : T> forceBind(type: KClass<T>, tag: Any = Unit, provider: () -> R) |
forceBindSet | [jvm] Content fun <T : Any, R : T> forceBindSet(type: KClass<T>, instances: List<Provider<R>>) fun <T : Any, R : T> forceBindSet(type: KClass<T>, providers: Map<Any, Provider<R>>) |