commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lesaint Sébastien <lesa...@ginerativ.com>
Subject RE: [Configuration] CompositeConfiguration.getNumberOfConfigurati ons( ) question
Date Thu, 07 Apr 2005 07:45:58 GMT
So, what should be done about it then?


-----Message d'origine-----
De : Eric Pugh [mailto:epugh@opensourceconnections.com] 
Envoyé : mercredi 6 avril 2005 17:14
À : Jakarta Commons Users List
Objet : Re: [Configuration]
CompositeConfiguration.getNumberOfConfigurations( ) question

Thats a good point..  However, sometimes you actually want to get back 
the memory configuration...   although, I guess that is mostly in the 
unit tests when you want to do whitebox testing..  From an external 
perspective, it does make sense that you would get back 2 
configurations only!

Eric

On Apr 6, 2005, at 4:43 AM, Lesaint Sébastien wrote:

> Hello,
>
>
>
> I'm using a CompositeConfiguration instance and I add two 
> configurations to
> it in my program.
>
> I'm quite surprised to see that method
> CompositeConfiguration.getNumberOfConfigurations() returns 3.
>
> I guess the method counts the in memory configuration.
>
>
>
> Do you think it is relevant to take the in memory configuration into
> account?
>
> If so, I guess it should be documented, isn't it? (it is not the case 
> at the
> moment)
>
>
>
> Regards,
>
>
>
> Seb' (who is sincerely graceful to all people involved in Jakarta 
> commons
> since it saved him lots of work)
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org

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