SimpleContextTranslator

class SimpleContextTranslator<in C : Any, S : Any>(val contextType: TypeToken<in C>, val scopeType: TypeToken<in S>, t: DirectDI.(ctx: C) -> S?) : ContextTranslator<C, S>

Constructors

Link copied to clipboard
constructor(contextType: TypeToken<in C>, scopeType: TypeToken<in S>, t: DirectDI.(ctx: C) -> S?)

Properties

Link copied to clipboard
open override val contextType: TypeToken<in C>
Link copied to clipboard
open override val scopeType: TypeToken<in S>

Functions

Link copied to clipboard
fun <C : Any, S : Any> ContextTranslator<C, S>.toKContext(di: DirectDI, ctx: C): DIContext<S>?
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun translate(di: DirectDI, ctx: C): S?