load

fun <T : Any> load(cls: KClass<T>): List<T>(source)
inline fun <T : Any> load(): List<T>(source)

Retrieves a list of services of the specified type T, which must be annotated with Service. Providers of these services must be annotated with ServiceProvider.