Home

com.hexagonkt.injection / InjectionManager

InjectionManager

object InjectionManager

Generators registry and utilities.

Functions

Name Summary
bind fun <T :Any, R :T> bind(type:KClass<T>, tag:Any, provider: () ->R):Unit
fun <T :Any, R :T> bind(type:KClass<T>, provider: () ->R):Unit
fun <T :Any> bind(tag:Any, provider: () ->T):Unit
fun <T :Any> bind(provider: () ->T):Unit
bindObject fun <T :Any, R :T> bindObject(type:KClass<T>, tag:Any, instance:R):Unit
fun <T :Any, R :T> bindObject(type:KClass<T>, instance:R):Unit
fun <T :Any> bindObject(tag:Any, instance:T):Unit
fun <T :Any> bindObject(instance:T):Unit
inject fun <T :Any> inject(type:KClass<T>, tag:Any):T
fun <T :Any> inject(tag:Any):T
fun <T :Any> inject(type:KClass<T>):T
fun <T :Any> inject():T
invoke operator fun invoke(block:InjectionManager.() ->Unit):InjectionManager

Extension Functions

Name Summary
convertToMap funAny.convertToMap():Map<*, *>
serialize funAny.serialize(format:SerializationFormat= defaultFormat):String
funAny.serialize(contentType:String):String