ContextTranslator

interface ContextTranslator<in C : Any, S : Any>

Functions

translate
Link copied to clipboard
common
abstract fun translate(di: DirectDI, ctx: C): S?

Properties

contextType
Link copied to clipboard
common
abstract val contextType: TypeToken<in C>
scopeType
Link copied to clipboard
common
abstract val scopeType: TypeToken<in S>

Inheritors

SimpleContextTranslator
Link copied to clipboard
SimpleAutoContextTranslator
Link copied to clipboard

Extensions

toKContext
Link copied to clipboard
common
fun <C : Any, S : Any> ContextTranslator<C, S>.toKContext(di: DirectDI, ctx: C): DIContext<S>?