|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.identityconnectors.common.l10n.CurrentLocale
public class CurrentLocale
Thread local variable that impacts localization of all messages in the connector framework. This is roughly equivalent to .Net's Thread.CurrentCulture. Note that this is an inheritable thread local so it is automatically inherited from parent to child thread. Of course, if the child thread is part of a thread pool, you will still need to manually propagate from parent to child.
Constructor Summary | |
---|---|
CurrentLocale()
|
Method Summary | |
---|---|
static void |
clear()
Clears the locale for the current thread. |
static Locale |
get()
Gets the locale from the current thread. |
static boolean |
isSet()
Returns true iff a thread-local locale is specified on the current thread. |
static void |
set(Locale locale)
Sets the locale for the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurrentLocale()
Method Detail |
---|
public static void set(Locale locale)
locale
- The locale to use.public static void clear()
public static Locale get()
Locale.getDefault
if
no locale is specified.
public static boolean isSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |