AbstractModuleBuilder
An abstract base class for creating a DependencyModule using a DSL. It provides the core functions for defining dependencies, such as single, factory, and scope. This class is not meant to be used directly but should be extended by concrete builder implementations.
Inheritors
Properties
Link copied to clipboard
A mutable list that collects all the DependencyFactory instances created by the builder.
Functions
Link copied to clipboard
fun <T : AbstractModuleBuilder> baseScope(qualifier: Qualifier, builderGenerator: DefaultScope.() -> T, block: T.() -> Unit)
An internal-use function to create and register a sub-scope factory.
Link copied to clipboard
Builds and returns the DependencyModule containing all the defined factories.