|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.internationalisation.LocaleProviderManager
public final class LocaleProviderManager
A factory for creating LocaleProvider objects, to support all the static instances of where JSword needs access to the the Locale.
It is expected that the LocaleProvider will only be set once, as a result, no effort is made to make this thread-safe as this should happen on
start up of the application. A default locale provider is given which simply returns the default locale. See DefaultLocaleProvider
for more details.
The GNU Lesser General Public License for details.
Field Summary | |
---|---|
private static LocaleProvider |
localeProvider
|
Constructor Summary | |
---|---|
private |
LocaleProviderManager()
Prevent public access. |
Method Summary | |
---|---|
static Locale |
getLocale()
Gets the locale to be used by the JSword library |
static LocaleProvider |
getLocaleProvider()
Gets the locale provider. |
static void |
setLocaleProvider(LocaleProvider provider)
Allow third-party applications to. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static LocaleProvider localeProvider
Constructor Detail |
---|
private LocaleProviderManager()
Method Detail |
---|
public static LocaleProvider getLocaleProvider()
public static Locale getLocale()
public static void setLocaleProvider(LocaleProvider provider)
provider
- the new locale provider
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |