TemplateMethodModelEx instead. This interface is from the old times when the only kind of
value you could pass in was string.public interface TemplateMethodModel extends TemplateModel
BeansWrapper.
In templates they are used like myMethod("foo", "bar") or myJavaObject.myJavaMethod("foo", "bar").
NOTHING| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
exec(java.util.List arguments)
Deprecated.
Executes the method call.
|
java.lang.Object exec(java.util.List arguments)
throws TemplateModelException
TemplateMethodModelEx instead.arguments - a List of String objects
containing the values of the arguments passed to the method.null. If the returned value
does not implement TemplateModel, it will be automatically
wrapped using the environment
object wrapper.TemplateModelException