Package com. uchuhimo. konf
Types
BaseConfig
Link copied to clipboard
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.
Config
Link copied to clipboard
ConfigException
Link copied to clipboard
ConfigSpec
Link copied to clipboard
open class ConfigSpec @JvmOverloads() constructor(prefix: String?, items: Set<Item<*>>, innerSpecs: Set<Spec>) : Spec
Content copied to clipboard
The default implementation for Spec.
ContainerNode
Link copied to clipboard
open class ContainerNode(children: MutableMap<String, TreeNode>, isPlaceHolder: Boolean) : MapNode
Content copied to clipboard
GetDefaultValueException
Link copied to clipboard
Handler
Link copied to clipboard
InvalidLazySetException
Link copied to clipboard
InvalidPathException
Link copied to clipboard
ItemContainer
Link copied to clipboard
LayerFrozenException
Link copied to clipboard
LazyConfigProperty
Link copied to clipboard
open class LazyConfigProperty<T>(config: Config, thunk: (config: ItemContainer) -> T, prefix: String, name: String?, description: String, nullable: Boolean) : PropertyDelegateProvider<Any?, ReadWriteProperty<Any?, T>>
Content copied to clipboard
LazyItem
Link copied to clipboard
LazyProperty
Link copied to clipboard
open class LazyProperty<T>(spec: Spec, thunk: (config: ItemContainer) -> T, name: String?, description: String, nullable: Boolean) : PropertyDelegateProvider<Any?, ReadOnlyProperty<Any?, LazyItem<T>>>
Content copied to clipboard
MergedConfig
Link copied to clipboard
open class MergedConfig(fallback: BaseConfig, facade: BaseConfig) : BaseConfig
Content copied to clipboard
MergedMap
Link copied to clipboard
class MergedMap<K, V>(fallback: MutableMap<K, V>, facade: MutableMap<K, V>) : MutableMap<K, V>
Content copied to clipboard
NameConflictException
Link copied to clipboard
NoSuchItemException
Link copied to clipboard
NoSuchPathException
Link copied to clipboard
OptionalConfigProperty
Link copied to clipboard
open class OptionalConfigProperty<T>(config: Config, default: T, prefix: String, name: String?, description: String, nullable: Boolean) : PropertyDelegateProvider<Any?, ReadWriteProperty<Any?, T>>
Content copied to clipboard
OptionalItem
Link copied to clipboard
open class OptionalItem<T> @JvmOverloads() constructor(spec: Spec, name: String, default: T, description: String, type: JavaType?, nullable: Boolean) : Item<T>
Content copied to clipboard
OptionalProperty
Link copied to clipboard
open class OptionalProperty<T>(spec: Spec, default: T, name: String?, description: String, nullable: Boolean) : PropertyDelegateProvider<Any?, ReadOnlyProperty<Any?, OptionalItem<T>>>
Content copied to clipboard
PathConflictException
Link copied to clipboard
RepeatedInnerSpecException
Link copied to clipboard
RepeatedItemException
Link copied to clipboard
RequiredConfigProperty
Link copied to clipboard
open class RequiredConfigProperty<T>(config: Config, prefix: String, name: String?, description: String, nullable: Boolean) : PropertyDelegateProvider<Any?, ReadWriteProperty<Any?, T>>
Content copied to clipboard
RequiredItem
Link copied to clipboard
open class RequiredItem<T> @JvmOverloads() constructor(spec: Spec, name: String, description: String, type: JavaType?, nullable: Boolean) : Item<T>
Content copied to clipboard
RequiredProperty
Link copied to clipboard
open class RequiredProperty<T>(spec: Spec, name: String?, description: String, nullable: Boolean) : PropertyDelegateProvider<Any?, ReadOnlyProperty<Any?, RequiredItem<T>>>
Content copied to clipboard
SizeInBytes
Link copied to clipboard
UnsetValueException
Link copied to clipboard
Functions
createDefaultMapper
Link copied to clipboard
lazy
Link copied to clipboard
inline fun <T> Spec.lazy(name: String? = null, description: String = "", noinline thunk: (config: ItemContainer) -> T): LazyProperty<T>
Content copied to clipboard
inline fun <T> Config.lazy(prefix: String = "", name: String? = null, description: String = "", noinline thunk: (config: ItemContainer) -> T): LazyConfigProperty<T>
Content copied to clipboard
notEmptyOr
Link copied to clipboard
optional
Link copied to clipboard
required
Link copied to clipboard
tempDirectory
Link copied to clipboard
fun tempDirectory(prefix: String = "tmp", suffix: String? = null, directory: File? = null): File
Content copied to clipboard
toCamelCase
Link copied to clipboard
toLittleCamelCase
Link copied to clipboard
toLittleCase
Link copied to clipboard
toSizeInBytes
Link copied to clipboard
unsupported
Link copied to clipboard