Base Config
open class BaseConfig(name: String, parent: BaseConfig?, mapper: ObjectMapper, specsInLayer: MutableList<Spec>, featuresInLayer: MutableMap<Feature, Boolean>, nodeByItem: MutableMap<Item<*>, BaseConfig.ItemNode>, tree: TreeNode, hasChildren: BaseConfig.Value<Boolean>, beforeSetFunctions: MutableList<(item: Item<*>, value: Any?) -> Unit>, afterSetFunctions: MutableList<(item: Item<*>, value: Any?) -> Unit>, beforeLoadFunctions: MutableList<(source: Source) -> Unit>, afterLoadFunctions: MutableList<(source: Source) -> Unit>, lock: ReentrantReadWriteLock) : Config
Content copied to clipboard
The default implementation for Config.
Constructors
BaseConfig
Link copied to clipboard
fun BaseConfig(name: String = "", parent: BaseConfig? = null, mapper: ObjectMapper = createDefaultMapper(), specsInLayer: MutableList<Spec> = mutableListOf(), featuresInLayer: MutableMap<Feature, Boolean> = mutableMapOf(), nodeByItem: MutableMap<Item<*>, BaseConfig.ItemNode> = mutableMapOf(), tree: TreeNode = ContainerNode.placeHolder(), hasChildren: BaseConfig.Value<Boolean> = Value(false), beforeSetFunctions: MutableList<(item: Item<*>, value: Any?) -> Unit> = mutableListOf(), afterSetFunctions: MutableList<(item: Item<*>, value: Any?) -> Unit> = mutableListOf(), beforeLoadFunctions: MutableList<(source: Source) -> Unit> = mutableListOf(), afterLoadFunctions: MutableList<(source: Source) -> Unit> = mutableListOf(), lock: ReentrantReadWriteLock = ReentrantReadWriteLock())
Content copied to clipboard
Types
ItemNode
Link copied to clipboard
ValueState
Link copied to clipboard
sealed class ValueState
Content copied to clipboard
Functions
addAfterLoadFunction
Link copied to clipboard
open fun addAfterLoadFunction(afterLoadFunction: (source: Source) -> Unit)
Content copied to clipboard
addAfterSetFunction
Link copied to clipboard
open fun addAfterSetFunction(afterSetFunction: (item: Item<*>, value: Any?) -> Unit)
Content copied to clipboard
addBeforeLoadFunction
Link copied to clipboard
open fun addBeforeLoadFunction(beforeLoadFunction: (source: Source) -> Unit)
Content copied to clipboard
addBeforeSetFunction
Link copied to clipboard
open fun addBeforeSetFunction(beforeSetFunction: (item: Item<*>, value: Any?) -> Unit)
Content copied to clipboard
beforeLoad
Link copied to clipboard
open override fun beforeLoad(beforeLoadFunction: (source: Source) -> Unit): Handler
Content copied to clipboard
contains
Link copied to clipboard
containsRequired
Link copied to clipboard
from
Link copied to clipboard
getItemOrNull
Link copied to clipboard
getOrNull
Link copied to clipboard
property
Link copied to clipboard
removeAfterLoadFunction
Link copied to clipboard
open fun removeAfterLoadFunction(afterLoadFunction: (source: Source) -> Unit)
Content copied to clipboard
removeAfterSetFunction
Link copied to clipboard
open fun removeAfterSetFunction(afterSetFunction: (item: Item<*>, value: Any?) -> Unit)
Content copied to clipboard
removeBeforeLoadFunction
Link copied to clipboard
open fun removeBeforeLoadFunction(beforeLoadFunction: (source: Source) -> Unit)
Content copied to clipboard
removeBeforeSetFunction
Link copied to clipboard
open fun removeBeforeSetFunction(beforeSetFunction: (item: Item<*>, value: Any?) -> Unit)
Content copied to clipboard
set
Link copied to clipboard
spliterator
Link copied to clipboard
validateRequired
Link copied to clipboard
withFallback
Link copied to clipboard
withLayer
Link copied to clipboard
withLoadTrigger
Link copied to clipboard
withPrefix
Link copied to clipboard
withSource
Link copied to clipboard
Properties
from
Link copied to clipboard
itemWithNames
Link copied to clipboard
nameOfItems
Link copied to clipboard
parent
Link copied to clipboard
Inheritors
MergedConfig
Link copied to clipboard
Sources
jvm source
Link copied to clipboard