Closed sheki closed 12 years ago
Currently, you can define "domains" as top level config blocks. For instance given the config file app.conf
:
development {
storage = mem
}
production {
storage = db
}
You can for example retrieve the config per domain as:
val domain = "development" // change here to get production config
val config = Configuration.load( "app.conf" ).detach( domain )
val storage = config[String]( "storage" ) // storage == "mem"
Is it enough for your needs ? If it's not the case could you provide an example of the behavior/syntax you are looking for ?
I can work around with this.
Configrity could support Domain's which can be picked up from the environment.
This could be used to pick up different config in different environments like Testing, Production, Development.