T - The context object which will be used to resolve the localepublic abstract class AbstractLocaleResolver<T> extends java.lang.Object implements LocaleResolver<T>
LocaleResolver and handles default locale resolution.| Modifier and Type | Field and Description | 
|---|---|
protected java.util.Locale | 
defaultLocale  | 
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description | 
|---|
AbstractLocaleResolver(java.util.Locale defaultLocale)  | 
| Modifier and Type | Method and Description | 
|---|---|
java.util.Locale | 
resolveOrDefault(T request)
Resolves the local or returns the default locale. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresolvepublic AbstractLocaleResolver(java.util.Locale defaultLocale)
defaultLocale - The locale to use if one cannot be found.@NonNull public java.util.Locale resolveOrDefault(@NonNull T request)
LocaleResolverresolveOrDefault in interface LocaleResolver<T>request - The context