posted 17 years ago
Actually the module i am developing a module, it will be having around 50 classes, and around 200 methods. so instead of validating method argument in every method, i want to make a class which will do it. So i will call its method from every method in another classes. So I have following options:
either create a different Object of validation class every time or
Make the validation class a singleton class or
make the validation method as static.
I was thinking its not good to create a new Validation class Object every time
i want to validation something.