public class LocaleProjectListener
extends LocaleListener
Replaces the default Locale
This listener replaces the current default locale with locale, then executes the project and finally returns the original default locale to it's place.
Attention: This code is subject to race conditions. The System can only have one default locale, and if you change the locale while it was already changed, the result may be inconsistent.
| Constructor and Description |
|---|
LocaleProjectListener(java.util.Locale newLocale)
Replaces the default Locale
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterProject() |
void |
beforeProject() |
changeLocale, resetLocalepublic LocaleProjectListener(java.util.Locale newLocale)
Replaces the default Locale
This listener replaces the current default locale with locale, then executes the project and finally returns the original default locale to it's place.
Attention: This code is subject to race conditions. The System can only have one default locale, and if you change the locale while it was already changed, the result may be inconsistent.