Peter Donald wrote:
On Sat, 1 Feb 2003 09:55, Stephen McConnell wrote:That is the intention.
I want the resource object cached but the establishment is directingIt breaks
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.
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.
The only difference is that instead of pulling in the default locale into the cache - the implementation can be instructed to pull an specific locale resource into the cache. I.e. default locale is the system default local unless you provide an overriding locale. That point on the resource manager returns the established locale. I.e. it's not broken.
Steve.
--
Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]