register

abstract fun <T> register(plugin: Any, type: Class<T>, service: T): ServiceProvider<T>
abstract fun <T> register(plugin: PluginContainer, type: Class<T>, service: T): ServiceProvider<T>

Registers a new service to this services manager.

Return

the registered service provider

Parameters

T

the service type

plugin

the plugin that registered the service

type

the type of the service being provided

service

the service being provided