CompositeProvider

class CompositeProvider(delegates: MutableMap<KClass<out Service>, Provider>) : Provider

Types

Delegate
Link copied to clipboard
inner class Delegate

Functions

of
Link copied to clipboard
fun of(delegate: Provider, init: CompositeProvider.Delegate.() -> Unit): CompositeProvider
offers
Link copied to clipboard
inline fun <C : Service> offers(): Boolean
open fun <C : Service> offers(serviceClass: KClass<C>): Boolean
optional
Link copied to clipboard
inline fun <C : Service> optional(): C?
fun <C : Service> optional(serviceClass: KClass<C>): C?
require
Link copied to clipboard
inline fun <C : Service> require(): C
fun <C : Service> require(serviceClass: KClass<C>): C
use
Link copied to clipboard
inline fun <S : Service> use(delegate: Provider): CompositeProvider
fun <S : Service> use(service: KClass<S>, delegate: Provider): CompositeProvider
useAll
Link copied to clipboard
fun useAll(delegate: Provider): CompositeProvider

Properties

services
Link copied to clipboard
open override val services: Set<KClass<out Service>>
timezone
Link copied to clipboard
open override val timezone: ZoneOffset