Hey I’m new to kodein someone could help me I wan...
# kodein
l
Hey I’m new to kodein someone could help me I want to provide a
String
tag for a job and the instance of the job but not sure if this is a factory, a provider… what would be similar to this using Kodein
Copy code
@Singleton
class AppJobCreator
    @Inject constructor(
            private val jobs: @JvmSuppressWildcards Map<String, Provider<Job>>
    ): JobCreator {

    override fun create(tag: String): Job? {
        val jobProvider = jobs[tag]
        return jobProvider?.get()
    }
}