Skip to content

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>, parameter:Any, provider: () ->R):Unit
fun <T :Any, R :T> bind(type:KClass<T>, provider: () ->R):Unit
fun <T :Any> bind(parameter:Any, provider: () ->T):Unit
fun <T :Any> bind(provider: () ->T):Unit
bindObject fun <T :Any, R :T> bindObject(type:KClass<T>, parameter:Any, instance:R):Unit
fun <T :Any, R :T> bindObject(type:KClass<T>, instance:R):Unit
fun <T :Any> bindObject(parameter:Any, instance:T):Unit
fun <T :Any> bindObject(instance:T):Unit
inject fun <T :Any> inject(type:KClass<T>, parameter:Any):T
fun <T :Any> inject(parameter:Any):T
fun <T :Any> inject(type:KClass<T>):T
fun <T :Any> inject():T

Extension Functions

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