Dear all
I am currently updating the site and documentation, to approach further a
first release. I am not happy with the current default config setup in
Core. I would propose to provide the following setup (PropertySources and
providers), from weakest to strongest:
1. Read *environment properties* and add them prefixed with "env."
2. Read all files found in *META-INF/cfg/defaults.properties*
3. Read all files found in* META-INF/cfg/${stage}/defaults.properties*
4. Read all files found in *META-INF/cfg/config.properties*
5. Read all files found in *META-INF/cfg/${stage}/config.properties*
6. Read current *system properties*.
Given that we have simple and enough powerful variant, which can be
implemented very easily.
If no stage is set, the stage specific parts are not read. The stage can be
set by applying a
environment property or (overriding) system property, named
*tamaya.stage*
I expect the Core and API module together not exceed 100k in Java 8 ;)
WDYT?
Anatole
--
*Anatole Tresch*
Java Engineer & Architect, JSR Spec Lead
Glärnischweg 10
CH - 8620 Wetzikon
*Switzerland, Europe Zurich, GMT+1*
*Twitter: @atsticks*
*Blogs: **http://javaremarkables.blogspot.ch/
<http://javaremarkables.blogspot.ch/>*
*Google: atsticksMobile +41-76 344 62 79*