Skip to content

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
Bar [jvm]
Content
interface Bar


Foo [jvm]
Content
interface Foo


Generator [jvm]
Content
data class GeneratorT : Any>(generator: () -> T) : Provider<T>


InjectionManager [jvm]
Content
object InjectionManager
More info
Generators registry and utilities.


InjectionManagerTest [jvm]
Content
class InjectionManagerTest


Instance [jvm]
Content
data class InstanceT : Any>(instance: T) : Provider<T>


Provider [jvm]
Content
sealed class ProviderT : Any>


Service [jvm]
Content
interface Service


SubBar1 [jvm]
Content
class SubBar1(foo: Foo) : Bar


SubBar2 [jvm]
Content
class SubBar2(foo: Foo) : Bar


SubBar3 [jvm]
Content
class SubBar3(foo: Foo) : Bar


SubBar3a [jvm]
Content
class SubBar3a(foo: Foo) : Bar


SubFoo1 [jvm]
Content
class SubFoo1 : Foo


SubFoo2 [jvm]
Content
class SubFoo2 : Foo


SubFoo3 [jvm]
Content
object SubFoo3 : Foo


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>>)


Comments