Package guru.zoroark.tegral.config.core

Types

Link copied to clipboard
open class ConfigurationSection<T : Any>(    val name: String,     val isOptional: SectionOptionality<T>,     val kclass: KClass<T>)

A configuration section that can be added to a SectionedConfiguration.

Link copied to clipboard
typealias ConfigurationSections = Map<ConfigurationSection<*>, Any>
Link copied to clipboard
interface RootConfig

Root configuration for Tegral appliactions.

Link copied to clipboard
open class SectionedConfiguration(val sections: ConfigurationSections)

A class that can contain an arbitrary number of "sections".

Link copied to clipboard
class SectionedConfigurationDecoder<T : SectionedConfiguration>(    sectionedConfigurationType: KClass<T>,     sectionedConfigurationTypeFactory: (Map<ConfigurationSection<*>, Any>) -> T,     sections: List<ConfigurationSection<*>>) : NullHandlingDecoder<T>

Hoplite decode for SectionedConfiguration.

Link copied to clipboard
sealed class SectionOptionality<out T>

Provides information on whether a section is optional or not.

Link copied to clipboard
class TegralConfig(elements: ConfigurationSections) : SectionedConfiguration

Sectioned configuration class used by the [tegral] block.

Link copied to clipboard
class UnknownSectionException(sectionName: String) : TegralException

Exception thrown when a section was not found in a SectionedConfiguration.