Reconfigurator

Represents the ability of reconfiguring the deployment unit.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val di: DI
Link copied to clipboard
open val diContext: DIContext<*>
Link copied to clipboard
open val diTrigger: DITrigger?

Functions

Link copied to clipboard
abstract suspend fun finalize(): Either<Nothing, Unit>

Asynchronously finalizes the entity. Can Either succeed or fail with an Error.

Link copied to clipboard
abstract suspend fun initialize(): Either<Nothing, Unit>

Asynchronously initializes the entity. Can Either succeed or fail with an Error.

Link copied to clipboard

Returns the flow of incoming reconfiguration messages.

Link copied to clipboard
abstract suspend fun reconfigure(newConfiguration: ReconfigurationMessage)

Reconfigures the deployment unit with the given newConfiguration.

Link copied to clipboard
abstract fun setupInjector(kodein: DI)

Configures the module of the dependency injection module that the resource will use.