Hmm not sure, builder aims to end in api IMO, not this factory without
a redesign of the api


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


2015-02-12 18:05 GMT+01:00 Oliver B. Fischer <[email protected]>:
> @Romain: I will add this to the builder module. Extension can support it if
> they want.
>
>
> Am 12.02.15 um 18:01 schrieb Romain Manni-Bucau:
>>
>> not exactly since you will handle only the format you can (ie the one you
>> scan)
>>
>> your locator is actually a factory more than a locator (surely why i
>> didnt get your original request). It doesnt makes any sense in tamaya
>> core IMO but can be an extension. but I think Anatole is right saying
>> it is his format abstraction
>>
>>
>> Romain Manni-Bucau
>> @rmannibucau
>> http://www.tomitribe.com
>> http://rmannibucau.wordpress.com
>> https://github.com/rmannibucau
>>
>>
>> 2015-02-12 17:56 GMT+01:00 Oliver B. Fischer <[email protected]>:
>>>
>>> Why is it so fucking hard to do easy things easily? ;-)
>>>
>>> Here is an example implementation for th JSONPropertySource
>>>
>>> public class JSONPropertySourceLocator implements PropertySourceLocator {
>>>      @Override
>>>      public PropertySource get(URL source) {
>>>          if (!accepts(source)) {
>>>              String mesg = format("%s is not supported",
>>> source.toString());
>>>              throw new ConfigException(mesg);
>>>          }
>>>
>>>          return new JSONPropertySource(source);
>>>      }
>>> }
>>>
>>> Adding a PropertySourceProviderManager is not helpfull because it has to
>>> discover existing format (Anatoles approach) or existing PropertySource
>>> implementation. Every PropertySource must be scanned for an ctor with URL
>>> parameter and so on and so on. This is not an very flexible design..
>>>
>>> Bye,
>>>
>>> Oliver
>>>
>>>
>>> Am 12.02.15 um 17:50 schrieb Romain Manni-Bucau:
>>> --
>>> 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