--
You received this message because you are subscribed to the Google Groups "finatra-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to finatra-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi David,We currently only support flags for configuration. However, Typesafe Config seems like a great choice once the number of flags become unwieldy. If you end up with some reusable utils for working with TypeSafe Config, please submit a PR for a finatra-typesafe-config library :-)
For more options, visit https://groups.google.com/d/optout.
val configurationFile = flag("config.file", "", "Optional config file to override settings")
//Stuff to hook up the typesafe config library into guice
lazy val config: Config = {
val specified = configurationFile()
if (specified.nonEmpty) {
ConfigFactory.load(specified)
} else {
ConfigFactory.load()
}
}
addFrameworkModule(TypesafeConfigModule.fromConfig(config))
Sent from Gmail Mobile
--
You received this message because you are subscribed to the Google Groups "finatra-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to finatra-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hey David,The changes were merged in this commit: https://github.com/twitter/finatra/commit/c14ff121cccfe13fb1c761f076c20593dd105151 available in master and should be in the 2.0.0. release available on maven central.