register

open override fun register(service: Any, serviceName: String, serviceType: KType)

Registers a service with the provider. Stores the service in both typed and named service maps for efficient lookup.

Parameters

service

the service instance to register

serviceName

the name to register the service under

serviceType

the Kotlin type of the service