SectionedConfigurationDecoder

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

Hoplite decode for SectionedConfiguration.

Note that this decoder is not loaded automatically. You need to manually add it to the Hoplite builder with the sections you are interested in.

Constructors

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

Functions

Link copied to clipboard
open override fun decode(node: Node, type: KType, context: DecoderContext): ConfigResult<T>
Link copied to clipboard
open fun priority(): Int
Link copied to clipboard
open override fun safeDecode(node: Node, type: KType, context: DecoderContext): ConfigResult<T>
Link copied to clipboard
open override fun supports(type: KType): Boolean