ForInstance

data class ForInstance : ServiceProvider

Provides an already existing object as a service

Functions

provide
Link copied to clipboard
open override fun provide(context: InjectionContext): Any
Simply returns the instance
validate
Link copied to clipboard
open override fun validate(kontainer: Kontainer): List<String>
Always valid

Properties

instances
Link copied to clipboard
open override val instances: List<ServiceProvider.CreatedInstance>
The list of created instance always holds the instance
type
Link copied to clipboard
open override val type: ServiceProvider.Type
The type of the service that is created