My progress has been sluggish in
SCJD due to other issues .. but i am going on....
I had a small question in URLYBIRD
I remember discussing once about the data class and the fact that one of the approaches to achieve synchronization is to use the singleton design
pattern. By making the data class a singleton, and following other methods, the data class can access multiple threads.The data class implements the given interface.
I also have a value object class which in turn calls methods of the data class. I was wondering if it should be this class which is a singleton instead of the data class. I remember someone saying that the reason Sun gives us an interface is because they use their methods to populate the db. If the Value object class is a singleton, the data class is not going to be
thread safe alone. While I can defend my design in the choices.txt saying that the only legitimate way of accessing data class in my program was through the value object class, is that reason going to be satisfying for the sun certifiers ?