Great. It is now done.

On Fri, Sep 7, 2012 at 12:13 AM, Paul Merlin <[email protected]> wrote:
> I've always felt it awkard too, so it's a +1 to rename configuration() as
> get()
>
> Niclas Hedhman a écrit :
>
>> I was reading some tutorial code;
>>
>>     Configuration<TravelPlanConfiguration>  config;
>>
>>      private void foo()
>>      {
>>          TravelPlanConfiguration tpConf = config.configuration();
>>          String hostName = tpConf.hostName().get();
>>
>> And it struck me that it feels awkward... The other methods are called
>> refresh() and save(), so shouldn't configuration() actually be get()
>> ???
>>
>> So, the above would be;
>>
>>     Configuration<TravelPlanConfiguration>  config;
>>
>>      private void foo()
>>      {
>>          String hostName = config.get().hostName().get();
>>
>>
>> WDYT?
>>
>> Cheers
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev



-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I live here; http://tinyurl.com/3xugrbk
I work here; http://tinyurl.com/6a2pl4j
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to