All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.lightoze.gwt.i18n.server.LocaleProvider Maven / Gradle / Ivy

There is a newer version: 0.26
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy