org.openxava.util
Class Locales

java.lang.Object
  extended by org.openxava.util.Locales

public class Locales
extends java.lang.Object

Access to the locale associated to the current thread.

Author:
Javier Paniza

Constructor Summary
Locales()
           
 
Method Summary
static java.util.Locale getCurrent()
          The Locale associated to the current thread.
static void setCurrent(java.util.Locale locale)
          Associated a Locale to the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Locales

public Locales()
Method Detail

getCurrent

public static java.util.Locale getCurrent()
The Locale associated to the current thread.

Returns:
Never null. If no locale associated, return default Locale.

setCurrent

public static void setCurrent(java.util.Locale locale)
Associated a Locale to the current thread.