Class ThreadLocaleImpl
java.lang.Object
org.apache.tapestry5.ioc.internal.services.ThreadLocaleImpl
- All Implemented Interfaces:
ThreadLocale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the thread's locale, which will be the JVM's default locale, untilThreadLocale.setLocale(Locale)is invoked.voidUpdates the locale for the current thread.
-
Constructor Details
-
ThreadLocaleImpl
public ThreadLocaleImpl()
-
-
Method Details
-
getLocale
Description copied from interface:ThreadLocaleReturns the thread's locale, which will be the JVM's default locale, untilThreadLocale.setLocale(Locale)is invoked.- Specified by:
getLocalein interfaceThreadLocale- Returns:
- the thread's locale
-
setLocale
Description copied from interface:ThreadLocaleUpdates the locale for the current thread.- Specified by:
setLocalein interfaceThreadLocale- Parameters:
locale- the new locale (may not be null)
-