kodein-di
/
org.kodein.di
/
DI
/
BindBuilder
common
Bind
Builder
interface
BindBuilder
<
C
:
Any
>
Content copied to clipboard
Base builder DSL interface that allows to define scoped and context bindings.
Types
Functions
Properties
Extensions
Parameters
Inheritors
Parameters
C
The context type.
Types
WithScope
Link copied to clipboard
common
interface
WithScope
<
C
:
Any
> :
DI.BindBuilder
<
C
>
Content copied to clipboard
Used to define bindings with a scope.
Functions
equals
Link copied to clipboard
common
open operator fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
hashCode
Link copied to clipboard
common
open fun
hashCode
():
Int
Content copied to clipboard
toString
Link copied to clipboard
common
open fun
toString
():
String
Content copied to clipboard
Properties
contextType
Link copied to clipboard
common
abstract val
contextType
:
TypeToken
<
C
>
Content copied to clipboard
The context type that will be used by all bindings that are defined in this DSL context.
explicitContext
Link copied to clipboard
common
abstract val
explicitContext
:
Boolean
Content copied to clipboard
Inheritors
DI.BindBuilder
Link copied to clipboard
DI
Link copied to clipboard
Extensions
factory
Link copied to clipboard
common
inline fun <
C
:
Any
,
A
:
Any
,
T
:
Any
>
DI.BindBuilder
<
C
>.
factory
(noinline creator:
BindingDI
<
C
>.(
A
) ->
T
):
Factory
<
C
,
A
,
T
>
Content copied to clipboard
Creates a factory: each time an instance is needed, the function
creator
function will be called.
provider
Link copied to clipboard
common
inline fun <
C
:
Any
,
T
:
Any
>
DI.BindBuilder
<
C
>.
provider
(noinline creator:
NoArgBindingDI
<
C
>.() ->
T
):
Provider
<
C
,
T
>
Content copied to clipboard
Creates a factory: each time an instance is needed, the function
creator
function will be called.