ForInstance

data class ForInstance : ServiceProvider

Provides an already existing object as a service

Functions

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

Simply returns the instance

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

Always valid

Properties

Link copied to clipboard
open override val definition: ServiceDefinition

The definition of the service.

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

The list of created instance always holds the instance

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

The type of the service that is created.