Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Lock & Unlock Implementation Question  RSS feed

Ajit Kumar
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
- I have two client classes one for local and one for remote. They both implement a common interface. These two classes turn make use of the class methods for most of the public methods.
- If i do not implement the lock and unlock methods in the file and implement these two methods in local and remote client classes.
I would like to check with you guys, if you see any problem with this approach from the project specifications point of view. Am i deviating from the instructions from Sun.
- One of the reasons for going for this approach is that the lock and unlock does require different type of logic depending on what mode the application is running in. For example, we do not have to provide for multiple clients accessing the db inthe local mode. This ensures that the class file does have only that code which is common for both the local and remote modes.
I would greatly appreciate your comments.
thanks in advance
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!