Package-level declarations

Types

Link copied to clipboard
interface ServiceProvider<T>

Represents a provider of a service of type T.

Link copied to clipboard
interface ServicesManager

The manager of services.

Functions

Link copied to clipboard

Gets the provider for the given type T, or returns null if there is no provider for the given type T.

Link copied to clipboard
inline fun <T> ServicesManager.provide(): T?

Gets the service for the given type T, or returns null if there is no registered service for the given type T.

Link copied to clipboard
inline fun <T> ServicesManager.register(plugin: Any, service: T)
inline fun <T> ServicesManager.register(plugin: PluginContainer, service: T)

Registers a new service to this services manager.