Module

data class Module(    val allowSilentOverride: Boolean = false,     val prefix: String = "",     val init: DI.Builder.() -> Unit)

A module is constructed the same way as in DI is:

val module = DI.Module {
bind<DataSource>() with singleton { SqliteDS.open("path/to/file") }
}

Constructors

Link copied to clipboard
fun Module(    name: String,     allowSilentOverride: Boolean = false,     prefix: String = "",     init: DI.Builder.() -> Unit)
Link copied to clipboard
fun Module(    allowSilentOverride: Boolean = false,     prefix: String = "",     init: DI.Builder.() -> Unit)

Functions

Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): DI.Module

Properties

Link copied to clipboard
val allowSilentOverride: Boolean = false

Whether this module is allowed to non-explicit overrides.

Link copied to clipboard
val init: DI.Builder.() -> Unit

The block of configuration for this module.

Link copied to clipboard
val name: String

The name of this module (for debug).

Link copied to clipboard
val prefix: String