I am building a tool. I have a Collection Class that stores data gathered from files on network. (Why? because reading from network files was more time consuming than reading all data at once and storing data into an object)
I need to use the same instance in various different classes.
I looked over the pro's and con's of Singleton Classes, and decided to use it since I felt passing around a serialized object of my Collection Class was not a good idea.
Is this a good programming technique? or is there a better solution. I can provide more details if I am not being clear
Thanks,
- Ivar
P.S: I am not sure if this has been already asked on SO, please guide me to the right post if Yes.