avaje / avaje-config

Application configuration / properties loading for JVM applications
https://avaje.io/config
Apache License 2.0
50 stars 8 forks source link

ENH: Add enabled() as a synonym for getBool ... for better reading when used as feature toggle #11

Closed rbygrave closed 4 years ago

rbygrave commented 4 years ago

if (Config.enabled("feature.cleanup")) {
  ...
}

Which is just the same as:


if (Config.getBool("feature.cleanup")) {
  ...
}