TegralDiCheckDsl

class TegralDiCheckDsl

DSL receiver class for the Tegral DI check DSL.

Constructors

Link copied to clipboard
fun TegralDiCheckDsl()

Properties

Link copied to clipboard
val checks: MutableList<TegralDiCheck>

Checks that should be ran.

Link copied to clipboard
val modules: MutableList<InjectableModule>

Modules that should be taken into account during the checks

Extensions

Link copied to clipboard
fun TegralDiCheckDsl.complete()

Checks that the modules are complete and that all dependencies and injections can be properly resolved.

Link copied to clipboard
fun TegralDiCheckDsl.modules(vararg modules: InjectableModule)

Adds the given modules to this Tegral DI check instance.

Link copied to clipboard
fun TegralDiCheckDsl.noCycle()

Checks that no cyclic dependencies are present within the modules.

Link copied to clipboard
inline fun TegralDiCheckDsl.noUnused(block: NoUnusedCheckDsl.() -> Unit = {})

Creates a NoUnusedCheck.

Link copied to clipboard
fun TegralDiCheckDsl.safeInjection()

Check that verifies no injection is actually performed during the instantiation of components.