Package io.micronaut.core.util
Interface LocaleResolver<T>
- Type Parameters:
T
- The context object which will be used to resolve the locale
- All Superinterfaces:
Ordered
- All Known Subinterfaces:
HttpLocaleResolver
- All Known Implementing Classes:
AbstractLocaleResolver
,CompositeHttpLocaleResolver
,CookieLocaleResolver
,FixedLocaleResolver
,HttpAbstractLocaleResolver
,HttpFixedLocaleResolver
,RequestLocaleResolver
Responsible for determining the current locale given a context.
- Since:
- 2.3.0
- Author:
- James Kleeh
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
-
Method Details
-
resolve
Resolves the locale for the given context.- Parameters:
context
- The context to retrieve the locale from- Returns:
- The locale
-
resolveOrDefault
Resolves the local or returns the default locale.- Parameters:
context
- The context- Returns:
- The locale
-