net.lightoze.gwt.i18n.server.LocaleProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-i18n-server Show documentation
Show all versions of gwt-i18n-server Show documentation
A project to make GWT localization available on server side.
package net.lightoze.gwt.i18n.server;
import java.util.Locale;
/**
* Interface abstracting out how the system can get Locales. This way end users of the API can hook in their own
* method of retrieving locales and not rely on the default {@link ThreadLocal} implementation.
*
* @author David Parish
*/
public interface LocaleProvider {
/**
* Gets the locale that is currently being used.
*
* @return The Locale being used or {@code null} if unknown.
*/
public Locale getLocale();
}