ScopeDependencyFactory
class ScopeDependencyFactory(val qualifier: Qualifier, val createRule: CreateRule, val create: () -> DefaultScope) : DependencyFactory<DefaultScope>
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.
Properties
Link copied to clipboard
The lambda function that creates and configures the new Scope instance.
Link copied to clipboard
The CreateRule for the scope, which is typically CreateRule.SINGLE to ensure the scope instance is a singleton within its parent.
Functions
Link copied to clipboard
Invokes the create lambda to produce a new instance of the dependency.