commonMain.it.unibo.pulvreakt.runtime.unit.AbstractUnitManager.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-jvm Show documentation
Show all versions of runtime-jvm Show documentation
A framework to create a pulverized system
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