Package-level declarations
Types
A sealed interface representing a factory for creating dependency instances. A factory is a recipe that tells the DI container how to create an object of a specific type T.
A data class that holds a collection of DependencyFactory instances. A module is essentially a container for the recipes (factories) that teach the DI container how to create objects.
A concrete implementation of DependencyFactory for creating standard object instances. This is the most common factory, used for single and factory definitions.
A typealias for a lambda that defines a set of dependency bindings using the DependencyModuleBuilder DSL. This allows for a clean and readable way to declare modules.
A specialized DependencyFactory for creating nested Scope instances. This factory is used by the scope<T> { ... } DSL function to define a sub-scope within a module.
Functions
Applies a ModuleDefinition to a given DefaultScope, registering all the defined dependencies.
Applies multiple ModuleDefinitions to a given DefaultScope. This is a convenience function to register several modules at once.