org.apache.hivemind.service.impl
Class ThreadLocaleImpl

java.lang.Object
  extended by org.apache.hivemind.service.impl.ThreadLocaleImpl
All Implemented Interfaces:
ThreadLocale

public class ThreadLocaleImpl
extends java.lang.Object
implements ThreadLocale

Since:
1.1
Author:
Howard M. Lewis Ship

Constructor Summary
ThreadLocaleImpl(java.util.Locale locale)
           
 
Method Summary
 java.util.Locale getLocale()
          Returns the current locale.
 void setLocale(java.util.Locale locale)
          Changes the locale from the default.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocaleImpl

public ThreadLocaleImpl(java.util.Locale locale)
Method Detail

setLocale

public void setLocale(java.util.Locale locale)
Description copied from interface: ThreadLocale
Changes the locale from the default.

Specified by:
setLocale in interface ThreadLocale

getLocale

public java.util.Locale getLocale()
Description copied from interface: ThreadLocale
Returns the current locale. Initially, this is the Registry.getLocale() default locale. This may be changed for a thread.

Specified by:
getLocale in interface ThreadLocale


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.