ForSingleton

data class ForSingleton : ServiceProvider

Provides a singleton service

Functions

provide
Link copied to clipboard
open override fun provide(context: InjectionContext): Any
Get or create the instance of the service
validate
Link copied to clipboard
open override fun validate(kontainer: Kontainer): List<String>
Validates that all parameters can be provided

Properties

definition
Link copied to clipboard
val definition: ServiceDefinition
instances
Link copied to clipboard
open override val instances: MutableList<ServiceProvider.CreatedInstance>
True when the service instance was created
type
Link copied to clipboard
open override val type: ServiceProvider.Type
The type of the service that is created