getProvider

abstract fun <T> getProvider(clazz: Class<T>): ServiceProvider<T>?

Gets the service provider for the service of the given clazz type, or returns null if there is no service provider for the given clazz.

Return

the service provider, or null if not present

Parameters

T

the service type

clazz

the service class