register
inline fun <S : Any> ServiceProvider.register(service: Any, serviceName: String = service.javaClass.toName())
Registers a service with reified type information. This is a convenience extension that automatically infers the service type using reified generics.
Parameters
service
the service instance to register
serviceName
the name to register the service under (defaults to class name converted to naming convention)
Type Parameters
S
the type of service being registered