Reputation: 1765
Recently we upgraded to Freemarker 2.3.22. We have implemented TemplateMethodModel interface mutliple times in our product. Now we are getting warnings that TemplateMethodModel is deprecated and consider using TemplateMethodModelEx.
Are there any specific things that can be done using TemplateMethodModelEx only?
Upvotes: 2
Views: 1055
Reputation: 31152
The advantage of TemplateMethodModelEx
is that it accepts non-String
method arguments. TemplateMethodModel
has remained from the old times (1.x?) when FreeMarker only had string values.
Upvotes: 5