ServiceProvider

interface ServiceProvider

ServiceProvider .

Author

ahoo wang

Inheritors

Functions

Link copied to clipboard
open fun <S : Any> getRequiredService(serviceType: Class<S>): S
open fun <S : Any> getRequiredService(serviceName: String): S
Link copied to clipboard
Link copied to clipboard
abstract fun <S : Any> getService(serviceType: Class<S>): S?
abstract fun <S : Any> getService(serviceName: String): S?
Link copied to clipboard
inline fun <S : Any> ServiceProvider.getService(): S?
Link copied to clipboard
open fun <S : Any> register(service: S)
abstract fun <S : Any> register(serviceType: Class<S>, service: S)
abstract fun <S : Any> register(serviceName: String, service: S)