ForSingleton

data class ForSingleton : ServiceProvider

Provides a global singleton service

Functions

Link copied to clipboard
open override fun provide(kontainer: Kontainer, context: InjectionContext): Any

Get or create the instance of the service

Link copied to clipboard
open override fun validate(kontainer: Kontainer): List<String>

Validates that all parameters can be provided

Properties

Link copied to clipboard
open override val definition: ServiceDefinition

The definition of the service.

Link copied to clipboard
open override val instances: MutableList<ServiceProvider.CreatedInstance>

True when the service instance was created

Link copied to clipboard
open override val type: ServiceProvider.Type

The type of the service that is created.