Can I pass a single instance of a
Validator
to multiple fields?
For example, if my layout has 5 “Email:” fields, can I pass the same instance of
EmailValidator
when I call each the five field’s “addValidator” method? Or should I generate a new Validator instance for each field?
Or is it a moot question if my validators are running on the same single thread as the Application’s GUI? I mean, if the validators get executed in a serial fashion in a single thread with no possibility of one validator interrupting another, then does that mean thread-safety is irrelevant and I can indeed pass a single Validator instance to many fields within a single Application instance (session)?
–Basil Bourque