Skip to content

configuration-starter ​

Configurations ​

Service for managing application configurations with type-safe keys.

Provides CRUD operations for configuration values using [ConfigurationKey] for type safety. Serialization and deserialization are handled automatically based on the key's type.

Example:

kotlin
object AppConfig {
    object MaxRetries : ConfigurationKey\<Int\>
}

configurations.set(AppConfig.MaxRetries, 3)
val retries = configurations.get(AppConfig.MaxRetries) // returns 3

Class: com.drinkit.configuration.Configurations

Methods (5)
  • delete()
  • get()
  • getOrSetDefault()
  • getOrThrow()
  • set()

Generated automatically from code annotations

MIT Licensed