ServiceType

Adds additional types to register this service as.

This may be useful in situations where implementation classes are services, but the interface needs to be constructible from it, as the framework will find back the implementation from the declared service types.

See the "Service types" section in @BService for more details.

See also

@BService

@InjectedService

@ConditionalService

Properties

Link copied to clipboard
@get:JvmName(name = "value")
val types: Array<out KClass<*>>

The additional types to register this service as, must be supertypes of this service