I don't like this reader:format:whatever thing. IMHO it is to explicit. I would like to be able to write something like

fromPath("/etc/app/conf.json")

Tamaya should figure out that this points to a file called conf.json in the directory /etc/app. Then Tamaya should pass it to it reads until the first of them accepts it and claims to be able to parse it.

Variants of the given example are

fromPath("file:///etc/app/conf.json")
fromPath("ftp://u:p@host:/config.json)
fromPath("https://host:9999/config.yaml";)

WDYT?

Oliver

Am 03.12.14 13:08, schrieb Tresch, Anatole:
PropertyProvider prov = PropertyProviders.fromPath("reader:whatever");



--
N Oliver B. Fischer
A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
P +49 30 44793251
M +49 178 7903538
E [email protected]
S oliver.b.fischer
J [email protected]
X http://xing.to/obf

Reply via email to