Class AbstractLocaleResolver<T>

java.lang.Object
io.micronaut.core.util.locale.AbstractLocaleResolver<T>
Type Parameters:
T - The context object which will be used to resolve the locale
All Implemented Interfaces:
Ordered, LocaleResolver<T>
Direct Known Subclasses:
HttpAbstractLocaleResolver

public abstract class AbstractLocaleResolver<T> extends Object implements LocaleResolver<T>
Provides an abstract class which implements LocaleResolver and handles default locale resolution.
Since:
2.3.0
Author:
Sergio del Amo
  • Field Details

    • defaultLocale

      protected final Locale defaultLocale
  • Constructor Details

    • AbstractLocaleResolver

      public AbstractLocaleResolver(Locale defaultLocale)
      Parameters:
      defaultLocale - The locale to use if one cannot be found.
  • Method Details