kodein-di
7.20.0
common
kodein-di
/
org.kodein.di.bindings
/
SimpleAutoContextTranslator
Simple
Auto
Context
Translator
class
SimpleAutoContextTranslator
<
S
:
Any
>
(
val
scopeType
:
TypeToken
<
in
S
>
,
t
:
DirectDI
.
(
)
->
S
)
:
ContextTranslator
<
Any
,
S
>
Constructors
Functions
Properties
Extensions
Constructors
Simple
Auto
Context
Translator
Link copied to clipboard
fun
<
S
:
Any
>
SimpleAutoContextTranslator
(
scopeType
:
TypeToken
<
in
S
>
,
t
:
DirectDI
.
(
)
->
S
)
Functions
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String
translate
Link copied to clipboard
open
override
fun
translate
(
di
:
DirectDI
,
ctx
:
Any
)
:
S
Properties
context
Type
Link copied to clipboard
open
override
val
contextType
:
TypeToken
<
Any
>
scope
Type
Link copied to clipboard
open
override
val
scopeType
:
TypeToken
<
in
S
>
Extensions
to
KContext
Link copied to clipboard
fun
<
C
:
Any
,
S
:
Any
>
ContextTranslator
<
C
,
S
>
.
toKContext
(
di
:
DirectDI
,
ctx
:
C
)
:
DIContext
<
S
>
?