All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.it.unibo.pulvreakt.runtime.unit.AbstractUnitManager.kt Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
package it.unibo.pulvreakt.runtime.unit

import it.unibo.pulvreakt.api.context.Context
import it.unibo.pulvreakt.api.reconfiguration.Reconfigurator
import it.unibo.pulvreakt.api.reconfiguration.component.ComponentModeReconfigurator
import it.unibo.pulvreakt.runtime.component.ComponentManager
import org.kodein.di.DI
import org.kodein.di.instance

internal abstract class AbstractUnitManager : UnitManager {
    final override lateinit var di: DI
    protected val componentManager by instance()
    protected val reconfigurator by instance()
    protected val componentModeReconfigurator by instance()
    protected val context by instance()

    final override fun setupInjector(kodein: DI) {
        di = kodein
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy