Interface LocaleResolver
-
- All Known Implementing Classes:
DefaultLocaleResolver
@Incubating public interface LocaleResolver
Define the strategy used to resolve the locale user for message interpolation when no locale is defined from the list of supported locales.- Since:
- 6.1.1
- Author:
- Guillaume Smet
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Localeresolve(LocaleResolverContext context)Returns the locale used for message interpolation when no locale is defined.
-
-
-
Method Detail
-
resolve
Locale resolve(LocaleResolverContext context)
Returns the locale used for message interpolation when no locale is defined.- Parameters:
context- the context- Returns:
- the locale to use for message interpolation, never null
-
-