SCBCD - SCWCD - SCJD - SCJP - OCA
I defined :
- getInstance(String file), throwing IllegalArgumentException if someone tries to create another instance..
- getInstance() for subsequent use.
Originally posted by Simon O'Brien:
Thanks for the replies.
I was thinking of doing this but my worry was that having a getInstance(String file) would be confusing as it implies that it is possible to get another instance using a different database file.
Originally posted by bao do:
Hello,
So let's say I start up the app in "server" mode, and this server allows to choose a db file to run which I then save in my suncertify.properties. If I run the app again, do I use that same db file and not ask the user which database file to use ?
Originally posted by bao do:
"the requirement states "configuration must be persistent between runs of programs", so it seems to mean that everytime they run the app, it must uses the same db file.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |