Package com.atlassian.confluence.it
Class TestingLocaleManager
java.lang.Object
com.atlassian.confluence.languages.DefaultLocaleManager
com.atlassian.confluence.it.TestingLocaleManager
- All Implemented Interfaces:
LocaleManager
-
Field Summary
Fields inherited from interface com.atlassian.confluence.languages.LocaleManager
DEFAULT_LOCALE
-
Constructor Summary
-
Method Summary
Methods inherited from class com.atlassian.confluence.languages.DefaultLocaleManager
getLocaleInfo, getSiteDefaultLocale, getUserAccessor, invalidateLocaleInfoCache, setCacheFactory, setCacheManager, setLanguage, setLanguageManager, setRequestLanguages, setSettingsManager, setUserAccessorGenerator
-
Constructor Details
-
TestingLocaleManager
public TestingLocaleManager()
-
-
Method Details
-
getLocale
Description copied from class:DefaultLocaleManager
Returns the user's locale if they have one set in their preferences, otherwise returns the site default locale. Caches the result in the thread-local cache so we only check the preference or settings once per request.- Specified by:
getLocale
in interfaceLocaleManager
- Overrides:
getLocale
in classDefaultLocaleManager
-