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 |
---|---|
Object |
exec(List arguments)
Deprecated.
Executes the method call.
|
Object exec(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