
commonMain.maryk.core.models.ContextualDataModel.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-jvm Show documentation
Show all versions of core-jvm Show documentation
Maryk is a Kotlin Multiplatform library which helps you to store, query and send data in a structured way over multiple platforms. The data store stores any value with a version, so it is possible to request only the changed data or live listen for updates.
The newest version!
package maryk.core.models
import maryk.core.properties.IsPropertyContext
/**
* Class for DataModels which work with a context to retrieve their properties and values.
* This is useful for situations where the DataModel definition should depend on outside definitions, or has
* a need for injection of information from other sources.
*/
abstract class ContextualDataModel, CXI: IsPropertyContext, CX: IsPropertyContext>(
val contextTransformer: Unit.(CXI?) -> CX?,
) : TypedObjectDataModel(),
IsObjectDataModel,
IsTypedObjectDataModel
© 2015 - 2025 Weber Informatics LLC | Privacy Policy