Interface ILocaleChangeService

All Known Implementing Classes:
LocaleChangeServiceImpl

public interface ILocaleChangeService
Service that is used to change the Locale at runtime.

Note: This is not an OSGi service! It is created by a ContextFunction.

Since:
1.2
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Locale change event: event that gets fired on Locale changes.
    static final String
    Base name for all locale change events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Change the Locale in the application context.
    void
    Change the Locale in the application context.
  • Field Details

  • Method Details

    • changeApplicationLocale

      void changeApplicationLocale(Locale locale)
      Change the Locale in the application context.
      Parameters:
      locale - The Locale to set to the application context.
    • changeApplicationLocale

      void changeApplicationLocale(String localeString)
      Change the Locale in the application context.

      If the given String is not a valid Locale String representation, there will be no locale change performed.

      Parameters:
      localeString - The String representation of the Locale to set to the application context.