[jsword-devel] Locale identification
Chris Burrell
chris at burrell.me.uk
Sat Jan 26 04:52:20 MST 2013
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.
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20130126/45a0daf4/attachment.html>
More information about the jsword-devel
mailing list