org.rythmengine.extension
Class II18nMessageResolver.DefaultImpl

java.lang.Object
  extended by org.rythmengine.extension.II18nMessageResolver.DefaultImpl
All Implemented Interfaces:
II18nMessageResolver
Enclosing interface:
II18nMessageResolver

public static class II18nMessageResolver.DefaultImpl
extends Object
implements II18nMessageResolver


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.rythmengine.extension.II18nMessageResolver
II18nMessageResolver.DefaultImpl
 
Field Summary
static II18nMessageResolver INSTANCE
           
 
Method Summary
 String getMessage(ITemplate template, String key, Object... args)
          Return i18n message of a given key and args, use the locale info from the template specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static II18nMessageResolver INSTANCE
Method Detail

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.