You want a default config file? It is common for sure + IIRC tamaya
has merge policy so already better than other "default"
implementations (ie we can get all files and merge them). Should
support classpath as well I guess but classpath priority should be <
file < system properties.


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-12-19 10:38 GMT+01:00 Otávio Gonçalves de Santana
<[email protected]>:
> Hum.
> I thought something more automatic like a file, maybe tamaya.files, that
> has path of this files. This file will stay in root of project.
> Like the ehcache configuration does.
>
>
> On Fri, Dec 19, 2014 at 4:40 AM, Anatole Tresch <[email protected]> wrote:
>>
>> Hi,
>> Currently IMO this only works by adding your file to a config provider and
>> then performing injection using the configure method. I think i will add an
>> additional configure method that takes a config as an argument. So you can
>> do:
>>
>> Configuration cfg =
>> ConfigBuilder.of().addPaths("file:file.properties").build();
>> MyObject o. = ...;
>> Confuguration.configure(o, cfg);
>>
>> Cheers
>> Anatole
>>
>>
>> Otávio Gonçalves de Santana <[email protected]> schrieb am
>> Fr., 19. Dez. 2014 um 01:18:
>>
>> Hi Anatole.
>>> How is going?
>>> One question: in tamaya how can I configure file.properties and inject in
>>> my fields?
>>> I dont find any example, did is there  implemented?
>>>
>>>
>>> --
>>> Otávio Gonçalves de Santana
>>>
>>> blog:     http://otaviosantana.blogspot.com.br/
>>> twitter: http://twitter.com/otaviojava
>>> site:     *http://about.me/otaviojava <http://about.me/otaviojava>*
>>> 55 (11) 98255-3513
>>>
>>>
>
> --
> Otávio Gonçalves de Santana
>
> blog:     http://otaviosantana.blogspot.com.br/
> twitter: http://twitter.com/otaviojava
> site:     *http://about.me/otaviojava <http://about.me/otaviojava>*
> 55 (11) 98255-3513

Reply via email to