org.rythmengine.extension
Class II18nMessageResolver.DefaultImpl
java.lang.Object
org.rythmengine.extension.II18nMessageResolver.DefaultImpl
- All Implemented Interfaces:
- II18nMessageResolver
- Enclosing interface:
- II18nMessageResolver
public static class II18nMessageResolver.DefaultImpl
- extends Object
- implements II18nMessageResolver
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static II18nMessageResolver INSTANCE
getMessage
public String getMessage(ITemplate template,
String key,
Object... args)
- Description copied from interface:
II18nMessageResolver
Return i18n message of a given key and args, use the locale info from the template specified.
if null template passed in then it will try to guess from the current engine via
RythmEngine.get()
- Specified by:
getMessage
in interface II18nMessageResolver
args
- the format arguments. If the first argument is of type Locale then it will be used to specify
the locale of the processing, and the rest elements are used as format arguments
- Returns:
- the i18n message
Copyright © 2013. All Rights Reserved.