avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <pe...@realityforge.org>
Subject Re: cvs commit: jakarta-avalon-excalibur/i18n/src/java/org/apache/avalon/excalibur/i18n ResourceManager.java
Date Fri, 31 Jan 2003 23:12:30 GMT
On Sat, 1 Feb 2003 09:55, Stephen McConnell wrote:
> I want the resource object cached but the establishment is directing
> that the cached resource is established with respect to a particular
> locale.  I don't see how this breaks caching because I want the
> behaviour of Resource per class. I simply want to override the default
> establishment of the locale.  Please take another look - I think you
> will find that class caching is working just fine - but I'm interested
> in any specific issues or respective suggestions you may have.

It breaks

r1 = ResourceManager.getResources( X.class, Locale.de );
r2 = ResourceManager.getResources( X.class, Locale.en );
r3 = ResourceManager.getResources( X.class );

and will always return the german resources rather than german, english and 
default locale.

-- 
Cheers,

Peter Donald
*------------------------------------------------*
| You can't wake a person who is pretending      |
|       to be asleep. -Navajo Proverb.           |
*------------------------------------------------* 


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


Mime
View raw message