Interface LocaleResolver

  • All Superinterfaces:
    Serializable
    All Known Subinterfaces:
    MessageContext
    All Known Implementing Classes:
    DefaultLocaleResolver

    public interface LocaleResolver
    extends Serializable
    Provides the current Locale.

    DeltaSpike provides a default implementation which returns the current system Locale.

    An application can provide custom implementation as an @Alternative. This could e.g. examine a JSF View or the Locale of any currently logged in User.

    • Method Detail

      • getLocale

        Locale getLocale()
        Returns:
        the current locale