ForLazyService

class ForLazyService : ParameterProvider

Provider for a lazy service

Functions

Link copied to clipboard
open override fun getInjectedServiceTypes(blueprint: KontainerBlueprint): Set<KClass<*>>

Get the injected services types

Link copied to clipboard
open override fun getProvisionType(): ParameterProvider.ProvisionType

Gets the provision type of the parameter.

Link copied to clipboard
open override fun provide(context: InjectionContext): Lazy<Any?>

Provides the service wrapped as a Lazy

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

Validates if the service can be provided by the container

Properties

Link copied to clipboard
open override val parameter: KParameter

The name of the parameter