get

inline fun <T : Any> get(): T

Get a registered service by type

Return

The instance of the service

Parameters

T
  • Type of service, usually an interface

Throws

If no service is registered of that type