kodein-di
/
org.kodein.di
/
DI
/
Builder
/
TypeBinder
common
jvm
Type
Binder
interface
TypeBinder
<
T
:
Any
>
Content copied to clipboard
Left part of the type-binding syntax (
bind(type, tag)
).
Functions
Extensions
Parameters
Parameters
T
The type to bind.
Functions
with
Link copied to clipboard
common
abstract infix fun <
C
:
Any
,
A
>
with
(binding:
DIBinding
<in
C
, in
A
, out
T
>)
Content copied to clipboard
Binds the previously given type and tag to the given binding.
Extensions
InSet
Link copied to clipboard
common
inline fun <
T
:
Any
>
DI.Builder.TypeBinder
<
T
>.
inSet
():
TypeBinderInSet
<
T
,
Set
<
T
>>
Content copied to clipboard
Defines that the binding will be saved in a set binding.
subTypes
Link copied to clipboard
jvm
fun <
T
:
Any
>
DI.Builder.TypeBinder
<
T
>.
subTypes
():
TypeBinderSubTypes
<
T
>
Content copied to clipboard
Allows to bind in an existing set binding (rather than directly as a new binding).