Peter Donald wrote:
On Sat, 1 Feb 2003 10:23, Stephen McConnell wrote:The ResourceManager class basically gets established once following which the body of the code invokes operations against the cached resource. There isn't anything in the ResourceManager currently to reset the locale being used as runtime. If you want a sepecic resource you can do that (as you suggested) using the Resource class. The getBaseResources could be enhanced to check the supplied locale is consitent with the cached locale however I think this is unnecessary - after all the ResourceManager is intended to provide the cache value as a static value and does not need to be changed following initiation.
Seems stupid. I would expectIt breaksThat is the intention.
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.
ResourceManager.getResources( X.class, Locale.en )
to return english resources myself.
Steve.
--
Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]