Hi devs,
I'd like to enable some classes from the commons-lang library as
velocity tools.
As a reminder, a velocity tool is an object that is placed in the
velocity context, and which can be used to perform some actions. The
tool should be stateless and thread-safe, as the same object is used for
all requests. There is the VelocityTools library, which contains some
useful tools, but I think those are not enough.
So, I'd like to enable StringUtils, WordUtils, RandomStringUtils,
StringEscapeUtils, BooleanUtils, ArrayUtils, math.NumberUtils,
math.RandomUtils, time.DateUtils, time.DateFormatUtils
Given the fact that tools are only create once, there won't be any
memory issue. And I think that these tools are wide enough to discourage
any attempt to add nice methods to the XWiki class, and will allow to
deprecate utility methods in the XWiki API, and remove the Util API.
Any objections? Any other classes we should enable?
--
Sergiu Dumitriu
http://purl.org/net/sergiu/