org.springframework.extensions.webscripts
Class FreemarkerI18NMessageMethod

java.lang.Object
  extended by org.springframework.extensions.webscripts.FreemarkerI18NMessageMethod
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateMethodModelEx, freemarker.template.TemplateModel

public class FreemarkerI18NMessageMethod
extends Object
implements freemarker.template.TemplateMethodModelEx

Author:
Kevin Roast, Will Abson
See Also:
Custom FreeMarker Template language method.

Returns an I18N message resolved for the current locale and specified message ID.

Usage: message(String id)


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
FreemarkerI18NMessageMethod()
           
 
Method Summary
 Object exec(List args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreemarkerI18NMessageMethod

public FreemarkerI18NMessageMethod()
Method Detail

exec

public Object exec(List args)
            throws freemarker.template.TemplateModelException
Specified by:
exec in interface freemarker.template.TemplateMethodModel
Throws:
freemarker.template.TemplateModelException
See Also:
TemplateMethodModel.exec(java.util.List)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.