commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julio Oliveira <julio.julioolive...@gmail.com>
Subject Re: [configuration]
Date Sat, 02 Apr 2016 12:53:06 GMT
Hi  Rainer

Can you attach the code, to see it.

Regards

Julio M. Oliveira

On Fri, Apr 1, 2016 at 6:52 PM, Rainer Hirschmiller <
rainer.hirschmiller@web.de> wrote:

> Hi.
>
> I'm trying configurations2 and PropertiesConfiguration. I have created a
> helper class doing some error handling and configuration for
> ProperiesConfiguration. Especially I load properties from different
> property files. I want to do this to define basic configurations in one
> file and be able to override these configurations in a second file which
> will be loaded later.
>
> Getting the property of such a double defined key which public <T> T
> get(final Class<T> cls, final String key) I got the first defined value.
> OK, I've overriden the method to get the last defined value.
>
> But I want to know why the behaviour is at it is. Is there a special
> reason? I think returning the last defined value would be preferred by
> other users allthough. What's do other users think about this behaviour?
>
> Regards
> Rainer
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>


-- 
Saludos

Julio M. Oliveira - Buenos Aires
http://www.linkedin.com/in/juliomoliveira

Software PYMES - Open Source
http://www.javatango.com/ <http://www.linkedin.com/in/juliomoliveira>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message