Package ch.tocco.nice2.textresources.spi
Interface LocaleResolver
- All Known Subinterfaces:
HttpRequestXLanguageLocaleResolver
,RequestParameterLocaleResolver
- All Known Implementing Classes:
HttpRequestXLanguageLocaleResolverImpl
,PrincipalLocaleResolver
,RequestParameterLocaleResolverImpl
public interface LocaleResolver
A
LocaleResolver
is responsible for detecting the current locales.
At any time the system can ask the resolver with getPreferredLocales()
what the current locales are.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the current locales in order of preference.
-
Field Details
-
HIGH_PRIORITY
static final int HIGH_PRIORITY- See Also:
-
LOW_PRIORITY
static final int LOW_PRIORITY- See Also:
-
-
Method Details
-
getPreferredLocales
Return the current locales in order of preference.- Returns:
- Unmodifiable, may be empty.
-