ServiceSupplierBuilder

class ServiceSupplierBuilder<T : Any>(primaryType: KClass<T>)(source)

Builder for ServiceSupplier.

Parameters

primaryType

The type as which the service will be registered as

Constructors

Link copied to clipboard
constructor(primaryType: KClass<T>)

Functions

Link copied to clipboard

Whether this service should be initialized only when requested

Link copied to clipboard

Whether this service should be a primary service

Link copied to clipboard
fun build(supplier: (BContext) -> T): ServiceSupplier<T>

Builds the ServiceSupplier.

Link copied to clipboard
fun withAdditionalTypes(vararg additionalTypes: Class<in T>): ServiceSupplierBuilder<T>
fun withAdditionalTypes(vararg additionalTypes: KClass<in T>): ServiceSupplierBuilder<T>
@JvmName(name = "additionalTypesKt")
fun withAdditionalTypes(additionalTypes: Collection<KClass<in T>>): ServiceSupplierBuilder<T>

Additional types this service can be retrieved as

Link copied to clipboard

Annotations which should be tied to this service

Link copied to clipboard

The name to register the service as

Link copied to clipboard

The priority of this service