[jsword-devel] Locale identification

Douglas Campos qmx at qmx.me
Sat Jan 26 11:20:36 MST 2013


On Sat, Jan 26, 2013 at 11:52:20AM +0000, Chris Burrell wrote:
> Hi
> 
> I'd like to propose a change to the way the Locale is identified. Ideally,
> it should be identified at runtime on a request by request basis, rather
> than once statically on start up.
> 
> I suggest introducing a LocaleProvider. By default, if none is provided, we
> will default to the current behaviour which is to default to
> Locale.getDefault().
> 
> A third party application such as STEP will be able to provide its own
> provider which will be request-scoped, so as to deal with individual
> requests coming in of different types.
> 
> This will involve removing any static access to ResourceBundle. Still need
> to delve through the code further to work out the immediate impact.

I'm +1 for anything that gets rid of statics :)

--qmx



More information about the jsword-devel mailing list