getService

fun <T> getService(serviceClass: Class<T>): T(source)

Returns the service registered in registerService or throws an exception, if no service is registered for the requested type.

Parameters

T

The type of the service

serviceClass

Java moment. The Java class of the service interface


inline fun <T> getService(): T(source)

Returns the service registered in registerService or throws an exception, if no service is registered for the requested type.

Parameters

T

The type of the service