Hi,
we have a util package that contains a helper class:
the idea is that validator is
thread safe, so we don't want to create a new instance in controllers all the time, so we just call static methods on the class.
but this could be achieved by creating normal class, where constructor creates validator instance, and mehtods are not static and used as a bean and autowired in controllers.
application context is loaded only once so we know that validator isntance is created only once on application start.
Is it better to leave it as it is (and why) or use a bean (and why)?
Thanks