Class ThreadLocaleImpl
- java.lang.Object
-
- org.apache.tapestry5.ioc.internal.services.ThreadLocaleImpl
-
- All Implemented Interfaces:
ThreadLocale
@Scope("perthread") public class ThreadLocaleImpl extends Object implements ThreadLocale
-
-
Constructor Summary
Constructors Constructor Description ThreadLocaleImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locale
getLocale()
Returns the thread's locale, which will be the JVM's default locale, untilThreadLocale.setLocale(Locale)
is invoked.void
setLocale(Locale locale)
Updates the locale for the current thread.
-
-
-
Constructor Detail
-
ThreadLocaleImpl
public ThreadLocaleImpl()
-
-
Method Detail
-
getLocale
public Locale 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
public void setLocale(Locale locale)
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)
-
-