provide

abstract fun <T> provide(clazz: Class<T>): T?

Gets the service for the given clazz, or returns null if there is no service registered for the given clazz.

Return

the service, or null if not present

Parameters

T

the service type

clazz

the service class