SectionedConfiguration

open class SectionedConfiguration(val sections: ConfigurationSections)

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

This allows to have a dynamic(ish) class inside a data class that gets loaded by Hoplite. This class can contain any number of sections. These sections are registered in and loaded by a SectionedConfigurationDecoder.

Constructors

Link copied to clipboard
fun SectionedConfiguration(sections: ConfigurationSections)

Functions

Link copied to clipboard
operator fun <T : Any> get(section: ConfigurationSection<T>): T

Retrieves a configuration via its section, or throws an exception if no such section could be found.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val sections: ConfigurationSections

The sections available in this configuration. Consider using the get operator instead of directly using this map.

Inheritors

Link copied to clipboard