serviceOption

abstract fun serviceOption(declaredName: String)(source)

Declares a service option, allowing injection of services, which must be available.

If the service is not available, then either don't declare this command, or make the declaring class disabled by using one of:

Parameters

declaredName

Name of the declared parameter which receives the value