toolbox.web.template
Class GetBundle

Package class diagram package GetBundle
java.lang.Object
  extended by toolbox.web.template.GetBundle
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateModel

public class GetBundle
extends java.lang.Object
implements freemarker.template.TemplateMethodModel

Template helper return the named bundle for the given locale properties


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Constructor Summary
GetBundle()
          Default constructor
 
Method Summary
 java.lang.Object exec(java.util.List args)
          Return a resource bundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetBundle

public GetBundle()
Default constructor

Method Detail

exec

public java.lang.Object exec(java.util.List args)
                      throws freemarker.template.TemplateModelException
Return a resource bundle

Specified by:
exec in interface freemarker.template.TemplateMethodModel
Parameters:
args - List containing arguments.
  • [0] = bundle name.
  • [1] = language code.
  • [2] = country code.
  • [3] = variant code.
  • Returns:
    ResourceBundle instance.
    Throws:
    freemarker.template.TemplateModelException