settler v1.0.0 Release Notes
Release Date: 2017-06-23 // over 7 years ago-
๐ Changelog:
๐ Allow extended traits to implement setting methods from their parents:
trait Parent { def myNumber: Int}trait Child extends ParentSettler.settings[Child](/*...*/)// Will correctly implement the
myNumber
method.๐ Allow lazy/eager loading of settings based on declaration:
trait Settings { val eagerlyLoaded: Stringdef lazyLoaded: String}
Format code using scalafmt
โ Add a config provider that uses environment variables:
trait Aws { @Key(name = "AWS\_SECRET\_ACCESS\_KEY") def key: Stringdef awsSecretAccessKey: String}val s = Settler.settings[Aws](ConfigProvider.fromEnv()) println(s.key == s.awsSecretAccessKey)