@Olivier: ConfigurationContext is ATM a SPI so you have a default
noarg constructor taken by tamaya infra.

What I'd do to make it easier is just to add an unwrap method to
Configuration for vendor specific stuff:

Config c = current();
MyContext mc = c.unwrap(MyContext.class);


unwrap would test the type on 1) configuration itself, 2) context

wdyt?



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


2015-01-08 8:59 GMT+01:00 Oliver B. Fischer <[email protected]>:
> ;-)
>
> But still my initial question is open: How to do I get a Configuration if I
> have a configured ConfigurationContext?
>
> Am 08.01.15 um 08:54 schrieb Romain Manni-Bucau:
>>
>> :) that's what we all say and we left the original thread
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>
>>
>> 2015-01-08 8:50 GMT+01:00 Oliver B. Fischer <[email protected]>:
>>>
>>> Hi all,
>>>
>>> I agree with you Anatole. There is no standard way there to place your
>>> configuration data. And we must not restrict the user in that ways that
>>> we
>>> decide how to solve this problem.
>>>
>>>  From my point of view we must provide a framework which helps the user
>>> to
>>> solve his problem. And not the other way around.
>>>
>>> Olive
>>>
>>> Am 07.01.15 um 11:14 schrieb Anatole Tresch:
>>>
>>> --
>>> 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
>>>
>
> --
> 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