ForPrototype

data class ForPrototype : ServiceProvider

Provides a prototype service

Each call to provide will create a new instance.

Types

Link copied to clipboard
class Provider(definition: ServiceDefinition) : ServiceProvider.Provider

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