Hi Oliver

This is possible. It will require the readers to determine if an expression
is targeting them, but makes it easier for users. Does anybody see a
technical issue that auto detection does not work?

A


Oliver B. Fischer <[email protected]> schrieb am Do., 4. Dez. 2014
um 13:32:

> 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