ForPrototype

data class ForPrototype : ServiceProvider

Provides a prototype service

Each call to provide will create a new instance.

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 is always prototype