1. When running either the client GUI (alone mode) or the server GUI (remote mode), I have already forced the user to enter the database file name. Could I just have the Data.getInstance() method get the file name from the properties file in the case that it has not yet been instantiated?
This would solve the problem of a singleton's getInstance method looking like the singleton approach rather than multiton and also enforce using the user-entered database file name.
2. However, would this be a problem for Sun's automated testing? I don't know much about this or whether or not I would need to provide them with a constructor that accepts a file name. I did not see anything specific in the specs regarding this.
3. These posts really make it look like singleton is not good enough, but I'm wondering if people have passed using the singleton approach. I am trying to keep this as simple as I can because I just want to somehow someday be able to finish the assignment and am hoping I can do it with the simpler singleton approach.