org.apache.hivemind.service
Interface ThreadLocale

All Known Implementing Classes:
ThreadLocaleImpl

public interface ThreadLocale

The hivemind.ThreadLocale service is intrinsic to HiveMind; its a threaded service for storing the locale for the current thread (it uses the threaded service).

Since:
1.1
Author:
Howard M. Lewis Ship

Method Summary
 java.util.Locale getLocale()
          Returns the current locale.
 void setLocale(java.util.Locale locale)
          Changes the locale from the default.
 

Method Detail

setLocale

void setLocale(java.util.Locale locale)
Changes the locale from the default.


getLocale

java.util.Locale getLocale()
Returns the current locale. Initially, this is the Registry.getLocale() default locale. This may be changed for a thread.