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.void
Updates the locale for the current thread.
-
Constructor Details
-
ThreadLocaleImpl
public ThreadLocaleImpl()
-
-
Method Details
-
getLocale
Description copied from interface:ThreadLocale
Returns the thread's locale, which will be the JVM's default locale, untilThreadLocale.setLocale(Locale)
is invoked.- Specified by:
getLocale
in interfaceThreadLocale
- Returns:
- the thread's locale
-
setLocale
Description copied from interface:ThreadLocale
Updates the locale for the current thread.- Specified by:
setLocale
in interfaceThreadLocale
- Parameters:
locale
- the new locale (may not be null)
-