ModuleSettingsBuilder

Base class to extend from when creating a settings builder for a new module.

Module settings are expected to be DataObjects and as such, this class becomes a wrapper around a standard DataObject.Builder, but allows for implementations to provide more user-friendly method names.

Therefore it also doesn't require users to know which json key any particular setting needs to be set at.

Inheritors

Constructors

Link copied to clipboard
constructor(moduleType: String)

Functions

Link copied to clipboard

Returns the complete Module settings as configured by this ModuleSettingsBuilder.

Link copied to clipboard
fun setEnabled(enabled: Boolean): T

Sets the resulting Module to be permanently enabled/disabled. Local/Remote settings sources will be overridden by this

Link copied to clipboard
fun setOrder(order: Int): T

Sets the order in which the Module needs to be initialized.