Package org.gwtproject.i18n.processor
Class GwtLocaleFactoryImpl
java.lang.Object
org.gwtproject.i18n.processor.GwtLocaleFactoryImpl
- All Implemented Interfaces:
org.gwtproject.i18n.shared.GwtLocaleFactory
public class GwtLocaleFactoryImpl
extends java.lang.Object
implements org.gwtproject.i18n.shared.GwtLocaleFactory
Creates server-side GwtLocale instances. Thread-safe.
-
Constructor Summary
Constructors Constructor Description GwtLocaleFactoryImpl() -
Method Summary
Modifier and Type Method Description voidclear()Clear an embedded cache of instances when they are no longer needed.org.gwtproject.i18n.shared.GwtLocalefromComponents(java.lang.String language, java.lang.String script, java.lang.String region, java.lang.String variant)org.gwtproject.i18n.shared.GwtLocalefromString(java.lang.String localeName)org.gwtproject.i18n.shared.GwtLocalegetDefault()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
GwtLocaleFactoryImpl
public GwtLocaleFactoryImpl()
-
-
Method Details
-
clear
public void clear()Clear an embedded cache of instances when they are no longer needed.Note that GwtLocale instances constructed after this is called will not maintain identity with instances constructed before this call.
-
fromComponents
public org.gwtproject.i18n.shared.GwtLocale fromComponents(java.lang.String language, java.lang.String script, java.lang.String region, java.lang.String variant)- Specified by:
fromComponentsin interfaceorg.gwtproject.i18n.shared.GwtLocaleFactory
-
fromString
public org.gwtproject.i18n.shared.GwtLocale fromString(java.lang.String localeName)- Specified by:
fromStringin interfaceorg.gwtproject.i18n.shared.GwtLocaleFactory- Throws:
java.lang.IllegalArgumentException- if the supplied locale does not match BCP47 structural requirements.
-
getDefault
public org.gwtproject.i18n.shared.GwtLocale getDefault()- Specified by:
getDefaultin interfaceorg.gwtproject.i18n.shared.GwtLocaleFactory
-