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