SectionedConfiguration

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.

Inheritors

Constructors

Link copied to clipboard
constructor(sections: ConfigurationSections)

Properties

Link copied to clipboard

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

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