ServiceProvider

This annotation is used to identify which service(s) the annotated element provides an instance for.

If no services are explicitly provided, the plugin will attempt to find all supertypes of the element that have the Service annotation.

This annotation can be applied to the following targets:

Usage:

@ServiceProvider(SimpleService::class)
object SimpleServiceImpl : SimpleService {
override fun saySomethingSweet() { ... }
}

Properties

Link copied to clipboard
val services: Array<out KClass<*>>