public class LocalizationServiceImpl
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
LocalizationServiceImpl() |
Modifier and Type | Method and Description |
---|---|
static <T extends Messages> |
createMessages(java.lang.Class<T> msgInterface,
java.util.Map<java.lang.String,? extends java.util.Map> xmappings)
Dynamically create an implementation of the supplied interface which
retrieves the return values of all methods retuning type of String from a map
|
static java.util.Collection<java.lang.String> |
getAvailableLocales() |
static java.util.Locale |
getLocale() |
static <T extends Messages> |
getMessage(java.lang.Class<T> msgInterface,
java.lang.String msg) |
static <T extends Messages> |
getMessages(java.lang.Class<T> msgInterface)
Retrieves (and creates) an implementation of the supplied Message interface,
where all methods are implemented to return the values specified in the
current locales property file
|
static <T extends Messages> |
getMessagesProvider(java.lang.Class<T> msgInterface) |
static java.util.Locale |
getUserLocal()
Internal use only.
|
java.lang.String |
getUserTimezone() |
static void |
setUserLocal(java.util.Locale locale) |
static void |
setUserTimezone(java.lang.String timezone) |
public static <T extends Messages> T getMessages(java.lang.Class<T> msgInterface)
public static <T extends Messages> <any> getMessagesProvider(java.lang.Class<T> msgInterface)
public static <T extends Messages> java.lang.String getMessage(java.lang.Class<T> msgInterface, java.lang.String msg)
public static <T extends Messages> T createMessages(java.lang.Class<T> msgInterface, java.util.Map<java.lang.String,? extends java.util.Map> xmappings) throws java.lang.InstantiationException, java.lang.IllegalAccessException
T
- msgInterface
- java.lang.IllegalAccessException
java.lang.InstantiationException
public static java.util.Collection<java.lang.String> getAvailableLocales()
public static java.util.Locale getLocale()
public static java.util.Locale getUserLocal()
public static void setUserLocal(java.util.Locale locale)
public static void setUserTimezone(java.lang.String timezone)
public java.lang.String getUserTimezone()