ModuleBuilderDsl

class ModuleBuilderDsl(name: String) : ContextBuilderDsl, Buildable<InjectableModule>

DSL builder class for InjectableModules. It does not add functionality other than the building logic. All DSL functionalities are provided as extension functions of ContextBuilderDsl.

Constructors

Link copied to clipboard
fun ModuleBuilderDsl(name: String)

Functions

Link copied to clipboard
open override fun build(): InjectableModule
Link copied to clipboard
open override fun <T : Any> put(declaration: Declaration<T>)

Adds a declaration to this context. You will rarely need to call this function directly, as many other put functions exist for a more DSL-ish approach.