0

I was gooing through the source code Apache commons library. My question is why they are using Serializable for every validator class e.g. EmailValidatore, ISBNValidator class ?

It has confused me with use case of Serializable. Can anyone justify the use case of Serializable here?

Manish Kumar
  • 10,214
  • 25
  • 77
  • 147
  • https://stackoverflow.com/questions/3429921/what-does-serializable-mean – xingbin Feb 02 '19 at 06:57
  • 1
    I see those objects hold configuration in their state. It's typical for such objects to be used in application/session scopes, where it happens that objects get serialized/deserialized following user interaction patterns. – ernest_k Feb 02 '19 at 07:05
  • Can you please elaborate little more. What i see that their all variables for used by them self and not from outside so the state is very much private – Manish Kumar Feb 02 '19 at 09:02

0 Answers0